Fix small lint errors found by gocritic

This commit is contained in:
Deluan 2021-07-15 13:42:54 -04:00
parent 8d56ec898e
commit b0fc684cb6
7 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@ import (
"github.com/navidrome/navidrome/model"
)
func NewBufferedScrobbler(ds model.DataStore, s Scrobbler, service string) *bufferedScrobbler {
func newBufferedScrobbler(ds model.DataStore, s Scrobbler, service string) *bufferedScrobbler {
b := &bufferedScrobbler{ds: ds, wrapped: s, service: service}
b.wakeSignal = make(chan struct{}, 1)
go b.run()

View file

@ -53,7 +53,7 @@ func GetPlayTracker(ds model.DataStore, broker events.Broker) PlayTracker {
for name, constructor := range constructors {
s := constructor(ds)
if conf.Server.DevEnableBufferedScrobble {
s = NewBufferedScrobbler(ds, s, name)
s = newBufferedScrobbler(ds, s, name)
}
p.scrobblers[name] = s
}