backend/sema: rename constructor to NewBackend

This commit is contained in:
Michael Eischer committed 2023-04-22 12:32:57 +02:00
1 parent f27750e270
commit ebba233a3a
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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)