-
Notifications
You must be signed in to change notification settings - Fork 0
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
chore: clean queen #5
Conversation
mmc: mmc, | ||
uclient: getUdgerClient(), |
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.
@kasteph are mmc
and uclient
used anywhere at the moment?
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 at the moment, these are for the multiaddress resolutions.
// Keep this protocols slice empty for now, | ||
// because we don't need it yet and I don't know how to get it | ||
// protocols := make([]string, 0) | ||
// protocols, _ := q.peerstore.GetProtocols(log.Requester) |
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.
@kasteph this is the string to get the list of protocols supported by the remote peer. However there is currently no field in the models.RequestsDenormalized
struct to add the protocols. Can I leave that to you?
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.
ok!
@@ -277,6 +257,28 @@ func (q *Queen) consumeAntsLogs(ctx context.Context) { | |||
} | |||
} | |||
|
|||
func (q *Queen) normalizeRequests(ctx context.Context) { |
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.
FYI: I moved requests normalization to the queen. Let me know if this seems wrong
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 think this looks good, much cleaner!
@@ -277,6 +257,28 @@ func (q *Queen) consumeAntsLogs(ctx context.Context) { | |||
} | |||
} | |||
|
|||
func (q *Queen) normalizeRequests(ctx context.Context) { |
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 think this looks good, much cleaner!
Follow up to #2