remove overlay count from inspector kad count command (#1073)

This commit is contained in:
Maximillian von Briesen 2019-01-16 14:44:26 -05:00 committed by GitHub
parent 342dc857f5
commit f97883f990
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ func NewInspector(address string) (*Inspector, error) {
}, nil
}
// CountNodes returns the number of nodes in the cache and kademlia
// CountNodes returns the number of nodes in kademlia
func CountNodes(cmd *cobra.Command, args []string) (err error) {
i, err := NewInspector(*Addr)
if err != nil {
@ -157,12 +157,8 @@ func CountNodes(cmd *cobra.Command, args []string) (err error) {
if err != nil {
return ErrRequest.Wrap(err)
}
overlaycount, err := i.overlayclient.CountNodes(context.Background(), &pb.CountNodesRequest{})
if err != nil {
return ErrRequest.Wrap(err)
}
fmt.Printf("---------- \n - Kademlia: %+v\n - Overlay: %+v\n", kadcount.Count, overlaycount.Count)
fmt.Printf("Kademlia node count: %+v\n", kadcount.Count)
return nil
}