瀏覽代碼

build pool doesnt return an error

Chris Bannister 10 年之前
父節點
當前提交
24104d30c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cluster.go

+ 1 - 1
cluster.go

@@ -53,7 +53,7 @@ type PoolConfig struct {
 	ConnSelectionPolicy func() ConnSelectionPolicy
 }
 
-func (p PoolConfig) buildPool(session *Session) (*policyConnPool, error) {
+func (p PoolConfig) buildPool(session *Session) *policyConnPool {
 	hostSelection := p.HostSelectionPolicy
 	if hostSelection == nil {
 		hostSelection = RoundRobinHostPolicy()