-
Notifications
You must be signed in to change notification settings - Fork 171
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
example(iroh): Improve and document custom-protocol
example
#2468
Conversation
cae3c6f
to
0d8b44a
Compare
0d8b44a
to
f98a416
Compare
iroh/examples/custom-protocol.rs
Outdated
/// Query the local database. | ||
/// | ||
/// Returns the list of hashes of blobs which contain `query` literally. | ||
pub async fn query_local(&self, query: &str) -> Result<Vec<Hash>> { |
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.
pub async fn query_local(&self, query: &str) -> Result<Vec<Hash>> { | |
pub fn query_local(&self, query: &str) -> Vec<Hash> { |
Needed to do this to fix some type error.
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.
uh yea thanks, this was a refactor leftover
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 trust you to fix the type error.
Other than that I think this is great :)
🎉
f7a8dac
to
9a66926
Compare
Description
custom-protocol
example to do something a bit more akin to something useful while still being conciseBreaking Changes
Notes & open questions
Change checklist