-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 a subcommand for the connmgr #4308
Conversation
3b8eed8
to
62d5217
Compare
(note: this relies on uncommitted changes to the connmgr lib) |
cmgr := n.PeerHost.ConnManager() | ||
switch cmgr := cmgr.(type) { | ||
case nil: | ||
infos["type"] = "<nil>" |
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 distinguishing between these two cases really useful? Users aren't going to know what <nil>
means.
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.
They shouldnt ever see "nil", Everything currently will either return a NullConnMgr or a BasicConnMgr. So maybe I should remove it?
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.
Probably. I'd fail with an error if this isn't supposed to happen.
infos["type"] = "basic" | ||
|
||
inf := cmgr.GetInfo() | ||
infos["lowWater"] = inf.LowWater |
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 assume these are supposed to be human readable keys? If so, we should probably just say things like "Low Watermark" instead.
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.
Those will be the result of JSON endpoint. We can create mappings in TextMarshaller.
@whyrusleeping so how about making human readable format having really human readable keys ( |
27a5321
to
13beb2e
Compare
@GitCop what is your problem? I have that. |
13beb2e
to
67e0293
Compare
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
67e0293
to
ff55c8f
Compare
Can someone take this over for me? |
ConnMgr work continued in #9420 |
License: MIT
Signed-off-by: Jeromy jeromyj@gmail.com