-
Notifications
You must be signed in to change notification settings - Fork 304
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
Restructure syncer package #492
Conversation
719a195
to
d35d3a3
Compare
pkg/neg/syncers/utils.go
Outdated
|
||
// encodeEndpoint encodes ip and instance into a single string | ||
func encodeEndpoint(ip, instance, port string) string { | ||
return fmt.Sprintf("%s||%s||%s", ip, instance, 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.
Nit - since ||
is used as the separator elsewhere, keep as const at the top
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.
Are we still using formattedName
anywhere else? If not, can we remove it?
pkg/neg/syncers/utils.go
Outdated
return nil | ||
} | ||
|
||
func negSyncerName(key NegSyncerKey) 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.
this could be a func (k NegSyncerKey) String() string
method
f9c7c17
to
5df00df
Compare
fixed the comments |
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.
lgtm
5df00df
to
e35f1d5
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bowei, freehan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Structural changes only. No functional change:
cc: @agau4779