提交 d13876ff 作者: Juan Batiz-Benet

commands/id: version was flipped

上级 b0a1cf03
......@@ -157,12 +157,12 @@ func printPeer(ps peer.Peerstore, p peer.ID) (interface{}, error) {
if v, err := ps.Get(p, "ProtocolVersion"); err == nil {
if vs, ok := v.(string); ok {
info.AgentVersion = vs
info.ProtocolVersion = vs
}
}
if v, err := ps.Get(p, "AgentVersion"); err == nil {
if vs, ok := v.(string); ok {
info.ProtocolVersion = vs
info.AgentVersion = vs
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论