warlock
warlock copied to clipboard
typo in time.Duration usage
// Acquire Fishing a usable link from the pool
func (w *Pool) Acquire() (*grpc.ClientConn, CloseFunc, error) {
ctx, cancel := context.WithTimeout(context.Background(), w.Config.AcquireTimeout*time.Second)
w.Config.AcquireTimeout is in seconds, there is no need to use w.Config.AcquireTimeout * time.Second?
Thanks for feedback