grpc_pool/constants.go
2017-11-09 16:43:43 +09:00

12 lines
323 B
Go

package grpc_pool
const (
DefaultMaxCapacity = 1
DefaultMaxIdle = 1
// DefaultWriteTimeout is default value of Write Timeout
DefaultIdleTimeout = 0
// If Wait is true and the pool is at the MaxActive limit, then Get() waits
// for a connection to be returned to the pool before returning.
DefaultWait = false
)