Skip to content
Snippets Groups Projects
Commit b95bf2d5 authored by lihaowei's avatar lihaowei
Browse files

Imp: three improvements

parent 844e6f19
No related branches found
No related tags found
No related merge requests found
......@@ -38,9 +38,9 @@ import (
)
const (
// ConsistentHash ...
// ConsistentHash consistent hash
ConsistentHash = "consistenthash"
// HashNodes ...
// HashNodes hash nodes
HashNodes = "hash.nodes"
// HashArguments key of hash arguments in url
HashArguments = "hash.arguments"
......
......@@ -31,12 +31,12 @@ import (
)
const (
// RoundRobin ...
// RoundRobin load balancing way
RoundRobin = "roundrobin"
// COMPLETE ...
// nolint
COMPLETE = 0
// UPDATING ...
// nolint
UPDATING = 1
)
......
......@@ -36,7 +36,7 @@ func NewApolloListener() *apolloListener {
}
}
// OnChange ...
// OnChange process each listener
func (a *apolloListener) OnChange(changeEvent *agollo.ChangeEvent) {
for key, change := range changeEvent.Changes {
for listener := range a.listeners {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment