Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does kite have its own client connection pool? Need to implement it myself? Is there a simple demo? #226

Open
aapelismith opened this issue Dec 21, 2018 · 1 comment

Comments

@aapelismith
Copy link

Does kite have its own client connection pool? Need to implement it myself? Is there a simple demo?

var captchaPoll *sync.Pool = &sync.Pool{
	New: func() interface{} {
		k := ku.NewClient("http://localhost:3636/kite")
		k.Dial()
		return k
	},
}
@aapelismith
Copy link
Author

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
	},
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant