aboutsummaryrefslogtreecommitdiff
path: root/go/operation/lookup.go
diff options
context:
space:
mode:
authoryourchanges <yourchanges@gmail.com>2015-01-10 02:51:26 +0800
committeryourchanges <yourchanges@gmail.com>2015-01-10 02:51:26 +0800
commit9601880e323bbdf9540f2c79fb21d66374245b50 (patch)
tree14fd3b36a89955ec6e0be6d51186031e978b519d /go/operation/lookup.go
parentf7bcd8e958ef185baeca0c455a397d49fcb62256 (diff)
parent2c1a846279c172bcae457e70efa142c29a18892e (diff)
downloadseaweedfs-9601880e323bbdf9540f2c79fb21d66374245b50.tar.xz
seaweedfs-9601880e323bbdf9540f2c79fb21d66374245b50.zip
Merge pull request #2 from chrislusf/master
merge
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
)