diff --git a/internal/local/backend.go b/internal/local/backend.go index 1fe9cf6..6407d3d 100644 --- a/internal/local/backend.go +++ b/internal/local/backend.go @@ -166,7 +166,7 @@ func (l *localLockBackend) Timestamp() *time.Time { } // Create implements main.LockBackend. -func (l *localLockBackend) Create(path, refname string) (transfer.Lock, error) { +func (l *localLockBackend) Create(path, _ string) (transfer.Lock, error) { id := localBackendLock{}.HashFor(path) var b bytes.Buffer b.WriteString(fmt.Sprintf("%s:%d:", LocalBackendLockVersion, l.Timestamp().Unix())) diff --git a/transfer/log.go b/transfer/log.go index 705f1ea..d64f62a 100644 --- a/transfer/log.go +++ b/transfer/log.go @@ -11,7 +11,7 @@ type noopLogger struct{} var _ Logger = (*noopLogger)(nil) // Log implements Logger. -func (*noopLogger) Log(v ...interface{}) {} +func (*noopLogger) Log(...interface{}) {} // Logf implements Logger. -func (*noopLogger) Logf(format string, v ...interface{}) {} +func (*noopLogger) Logf(string, ...interface{}) {} diff --git a/transfer/oid.go b/transfer/oid.go index ccd689a..42ac533 100644 --- a/transfer/oid.go +++ b/transfer/oid.go @@ -34,7 +34,7 @@ func (p Pointer) IsValid() bool { return true } -// RelativePath returns the relative storage path of the pointer +// RelativePath returns the relative storage path of the pointer. func (p Pointer) RelativePath() string { if len(p.Oid) < 5 { return p.Oid diff --git a/transfer/pktline.go b/transfer/pktline.go index 9368a0c..ff1bee3 100644 --- a/transfer/pktline.go +++ b/transfer/pktline.go @@ -44,6 +44,7 @@ func NewPktline(r io.Reader, w io.Writer, logger Logger) *Pktline { Pktline: pktline.NewPktline(r, w), r: r, w: w, + logger: logger, } }