Open aapelismith opened 5 years ago
This is my own connection pool. He is so simple and clumsy. I want to know if there is any best way to implement this connection pool.
package main
import (
"github.com/koding/kite"
"sync"
)
var userSrvPoll *sync.Pool = &sync.Pool{
New: func() interface{} {
k := k.NewClient("http://localhost:3636/kite")
k.Dial()
return k
},
}
Does kite have its own client connection pool? Need to implement it myself? Is there a simple demo?