-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add initial service building blocks #1
Conversation
6197a44
to
e48c89f
Compare
server/src/main.rs
Outdated
println!( | ||
"CHANNEL_PENDING: {} from counterparty {}", | ||
channel_id, counterparty_node_id | ||
); |
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.
Indentation off here and below
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.
Fixed.
I think we'll have to drop all the println
s soon anyways in favor of some better logging. Possibly a split logger that logs to stdout and to file?
Ok(request) => match handler(node, request) { | ||
Ok(response) => Ok(Response::builder() | ||
.body(Full::new(Bytes::from(response.encode_to_vec()))) | ||
// unwrap safety: body only errors when previous chained calls failed. |
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.
Do we plan on doing this on every unwrap
? Should we do so throughout this PR if so?
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.
Yes I think so. Now got rid of the unwrap
s when building node/runtime and added another comment.
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. Please squash.
7e84e34
to
7fc39ea
Compare
Squashed without further changes. |
We add the additional daemon/service building blocks.