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

Reconnects #11

Closed
vmakhaev opened this issue Feb 25, 2018 · 2 comments
Closed

Reconnects #11

vmakhaev opened this issue Feb 25, 2018 · 2 comments

Comments

@vmakhaev
Copy link

What is the best way to handle reconnects? Docs say that Connector instance "transparently handle reconnects", but I do not see any reconnect logic in sources.

@viciious
Copy link
Owner

The reconnect logic can be found here: https://github.com/viciious/go-tarantool/blob/master/connector.go#L26

@vmakhaev
Copy link
Author

Ok, I see. One needs to create connector and get connection from it before every operation. Somehow I expected something more complicated, with transparent recreating connections, etc. But I like this approach, it's simple.

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

2 participants