-
Notifications
You must be signed in to change notification settings - Fork 985
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 /p2p page #3391
Add /p2p page #3391
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3391 +/- ##
===========================================
+ Coverage 2.68% 39.98% +37.29%
===========================================
Files 24 184 +160
Lines 967 12563 +11596
===========================================
+ Hits 26 5023 +4997
- Misses 940 6618 +5678
- Partials 1 922 +921 |
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3391 +/- ##
===========================================
+ Coverage 2.68% 39.98% +37.29%
===========================================
Files 24 184 +160
Lines 967 12563 +11596
===========================================
+ Hits 26 5023 +4997
- Misses 940 6618 +5678
- Partials 1 922 +921 |
func (s *Service) InfoHandler(w http.ResponseWriter, _ *http.Request) { | ||
buf := new(bytes.Buffer) | ||
if _, err := fmt.Fprintf(buf, `bootnode=%s | ||
self=%s |
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.
is it just my browser? or this looks messed up
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.
Yeah it looks off
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.
using ` formats it exactly how you have it. If i add tabs/spacing here, then it would be tabbed/spaced in the rendering.
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.
Ah k, sounds good in that case
Adds new
/p2p
page served on the monitoring port. Try accessinghttp://localhost:8080/p2p
.Example: