2017-11-09 06:47:07 +00:00
|
|
|
package grpc_pool
|
2017-11-09 05:46:04 +00:00
|
|
|
|
|
|
|
const (
|
2017-11-09 07:43:43 +00:00
|
|
|
DefaultMaxCapacity = 1
|
|
|
|
DefaultMaxIdle = 1
|
2017-11-09 05:46:04 +00:00
|
|
|
// DefaultWriteTimeout is default value of Write Timeout
|
|
|
|
DefaultIdleTimeout = 0
|
2017-11-09 07:43:43 +00:00
|
|
|
// 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
|
2017-11-09 05:46:04 +00:00
|
|
|
)
|