-
Notifications
You must be signed in to change notification settings - Fork 59
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
Make public interfaces implementable #184
Make public interfaces implementable #184
Conversation
host_source.go
Outdated
h.mu.Lock() | ||
defer h.mu.Unlock() | ||
addr, _ := h.connectAddressLocked() | ||
return net.JoinHostPort(addr.String(), strconv.Itoa(h.port)) | ||
h.mu.Lock() | ||
defer h.mu.Unlock() | ||
addr, _ := h.connectAddressLocked() | ||
return net.JoinHostPort(addr.String(), strconv.Itoa(h.port)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to the PR
metadata_scylla.go
Outdated
cache map[string]*KeyspaceMetadata | ||
cache map[string]*KeyspaceMetadata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
scylla.go
Outdated
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
scylla.go
Outdated
return c.streams.NumStreams / 2 > c.AvailableStreams(); | ||
return c.streams.NumStreams/2 > c.AvailableStreams() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
session.go
Outdated
indexes []int | ||
types []TypeInfo | ||
keyspace string | ||
table string | ||
indexes []int | ||
types []TypeInfo | ||
keyspace string | ||
table string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
140013b
to
30dc8d9
Compare
30dc8d9
to
5bdba32
Compare
bd80d3f
to
67c4a60
Compare
currently private interface `token` directly or indirectly present in lot's of interfaces and therefore makes them unimplementable: `SelectedHost`, `ExecutableQuery`, `HostSelectionPolicy`, `NextHost` To fix it we need to make all parts of interfaces be public
`ExecutableQuery` uses `partitioner` which makes it unimplementable
67c4a60
to
f0b3cef
Compare
currently private interface
token
directly or indirectly present in lot's of interfaces and therefore makes them unimplementable:SelectedHost
,ExecutableQuery
,HostSelectionPolicy
,NextHost
To fix it we need to make all parts of interfaces be public
Closes #183