aboutsummaryrefslogtreecommitdiff
path: root/go/operation/lookup.go
diff options
context:
space:
mode:
Diffstat (limited to 'go/operation/lookup.go')
-rw-r--r--go/operation/lookup.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/go/operation/lookup.go b/go/operation/lookup.go
index ebf153d27..70bc7146e 100644
--- a/go/operation/lookup.go
+++ b/go/operation/lookup.go
@@ -1,14 +1,15 @@
package operation
import (
- "github.com/chrislusf/weed-fs/go/util"
"encoding/json"
"errors"
- _ "fmt"
+ "fmt"
"math/rand"
"net/url"
"strings"
"time"
+
+ "github.com/chrislusf/weed-fs/go/util"
)
type Location struct {
@@ -21,6 +22,10 @@ type LookupResult struct {
Error string `json:"error,omitempty"`
}
+func (lr *LookupResult) String() string {
+ return fmt.Sprintf("VolumeId:%s, Locations:%v, Error:%s", lr.VolumeId, lr.Locations, lr.Error)
+}
+
var (
vc VidCache
)