OSDN Git Service

add ipfs client
[bytom/vapor.git] / vendor / github.com / ipfs / go-ipfs-api / shell.go
index f0b24f8..1c44e02 100644 (file)
@@ -20,8 +20,6 @@ import (
        ma "github.com/multiformats/go-multiaddr"
        manet "github.com/multiformats/go-multiaddr-net"
        tar "github.com/whyrusleeping/tar-utils"
-
-       p2pmetrics "github.com/libp2p/go-libp2p-metrics"
 )
 
 const (
@@ -474,11 +472,13 @@ func (s *Shell) ObjectStat(key string) (*ObjectStats, error) {
 
 // ObjectStat gets stats for the DAG object named by key. It returns
 // the stats of the requested Object or an error.
+/*
 func (s *Shell) StatsBW(ctx context.Context) (*p2pmetrics.Stats, error) {
        v := &p2pmetrics.Stats{}
        err := s.Request("stats/bw").Exec(ctx, &v)
        return v, err
 }
+*/
 
 type SwarmStreamInfo struct {
        Protocol string