forked from scylladb/gocql
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure policies are not reused between sessions
Sharing a policy between sessions is not supported because the policy receives state updates from the session. Let's update the documentation and add a panic in TokenAwareHostPolicy constructor. It is better to panic early than to have races and undefined behavior later. See also discussion in scylladb#94
- Loading branch information
1 parent
d73e6b1
commit 554432f
Showing
2 changed files
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters