Remove setting default client timeout in peer.NewStore

This commit is contained in:
Andrey Beletsky 2019-12-16 22:47:35 +07:00
parent 95eb94f5a7
commit 52127eee7c

View file

@ -22,9 +22,6 @@ type StoreOpts struct {
// NewStore makes a new peer store.
func NewStore(opts StoreOpts) *Store {
if opts.Timeout == 0 {
opts.Timeout = time.Second * 5
}
c := &Client{Timeout: opts.Timeout}
err := c.Connect(opts.Address)
return &Store{client: c, connErr: err}