storage/memory: multi-line call to New()
This commit is contained in:
parent
f0780ad9cc
commit
3c052ec98d
1 changed files with 6 additions and 1 deletions
|
@ -9,7 +9,12 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func createNew() s.PeerStore {
|
func createNew() s.PeerStore {
|
||||||
ps, err := New(Config{ShardCount: 1024, GarbageCollectionInterval: 10 * time.Minute, PrometheusReportingInterval: 10 * time.Minute, PeerLifetime: 30 * time.Minute})
|
ps, err := New(Config{
|
||||||
|
ShardCount: 1024,
|
||||||
|
GarbageCollectionInterval: 10 * time.Minute,
|
||||||
|
PrometheusReportingInterval: 10 * time.Minute,
|
||||||
|
PeerLifetime: 30 * time.Minute,
|
||||||
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue