-
Notifications
You must be signed in to change notification settings - Fork 54
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
Refactor for TLS handlers #54
Conversation
@@ -416,6 +414,9 @@ func main() { | |||
} | |||
}() | |||
|
|||
// multiple listeners channel | |||
finish := make(chan bool) |
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.
where is this used?
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.
Hmmm I had this from a long time ago when I was running all services in the same binary, but now I am not using it anymore. Remove!
l.Log( | ||
logType, | ||
data, | ||
environment, | ||
uuid, | ||
debug) |
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.
nit, funny line splitting.
err := l.Nodes.RefreshLastStatus(uuid) | ||
if err != nil { |
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.
if err := l.Nodes.RefreshLastStatus(uuid); err != nil {
}
l.QueryLog( | ||
types.QueryLog, | ||
data, | ||
node.Environment, | ||
node.UUID, | ||
queryData.Name, | ||
queryData.Status, | ||
debug) |
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.
same odd line-splitting comment.
err := json.Unmarshal(data, &logs) | ||
if err != nil { |
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.
if err := ...; err != nil {
}
result := []string{} | ||
for _, entry := range duplicated { | ||
if _, value := keys[entry]; !value { | ||
keys[entry] = true |
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.
i don't think you actually need this. you don't use it anywhere.
Overview