warlock icon indicating copy to clipboard operation
warlock copied to clipboard

typo in time.Duration usage

Open dudebing99 opened this issue 5 years ago • 1 comments

// 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?

dudebing99 avatar Dec 24 '20 09:12 dudebing99

Thanks for feedback

ruiboma avatar Feb 05 '21 07:02 ruiboma