Fix another lint error
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
This commit is contained in:
parent
7a3746b33a
commit
954164216e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue