Fix another lint error

Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
This commit is contained in:
Tomasz Pietrek 2022-10-12 11:50:45 +02:00
parent 7a3746b33a
commit 954164216e
2 changed files with 1 additions and 2 deletions

View File

@ -117,7 +117,6 @@ func parseMetadata(psm pubsub.Metadata) (metadata, error) {
if duration, err := time.ParseDuration(trimmed); err == nil {
backOff = append(backOff, duration)
}
}
m.backOff = backOff

View File

@ -67,7 +67,7 @@ func TestParseMetadata(t *testing.T) {
replicas: 3,
memoryStorage: true,
rateLimit: 20000,
hearbeat: time.Duration(time.Second * 1),
hearbeat: time.Second * 1,
},
expectErr: false,
},