Clients and Transports are safe for concurrent use by multiple goroutines
and for efficiency should only be created once and re-used.
Currently, we make a new client and transport for every http.Client.Do request. https://github.com/0chain/gosdk/pull/65 changed this for one case, we should do the same elsewhere.
Quote from http godoc https://golang.org/pkg/net/http/
Currently, we make a new client and transport for every http.Client.Do request. https://github.com/0chain/gosdk/pull/65 changed this for one case, we should do the same elsewhere.
It helps with unit tests as well.