storage/memory: multi-line call to New()

This commit is contained in:
Jimmy Zelinskie 2018-06-14 18:58:40 -04:00
parent f0780ad9cc
commit 3c052ec98d

View file

@ -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)
} }