mirror of
https://github.com/restic/restic.git
synced 2025-08-23 09:47:42 +00:00
backend/sema: rename constructor to NewBackend
This commit is contained in:
@@ -18,8 +18,8 @@ type connectionLimitedBackend struct {
|
||||
sem semaphore
|
||||
}
|
||||
|
||||
// New creates a backend that limits the concurrent operations on the underlying backend
|
||||
func New(be restic.Backend) restic.Backend {
|
||||
// NewBackend creates a backend that limits the concurrent operations on the underlying backend
|
||||
func NewBackend(be restic.Backend) restic.Backend {
|
||||
sem, err := newSemaphore(be.Connections())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user