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