mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
go fmt
This commit is contained in:
parent
58fa506491
commit
0542911e29
|
@ -114,7 +114,7 @@ func retriedFetchChunkData(urlStrings []string, cipherKey []byte, isGzipped bool
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if err != nil && shouldRetry{
|
if err != nil && shouldRetry {
|
||||||
glog.V(0).Infof("retry reading in %v", waitTime)
|
glog.V(0).Infof("retry reading in %v", waitTime)
|
||||||
time.Sleep(waitTime)
|
time.Sleep(waitTime)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -34,7 +34,7 @@ type VisitNodeFunc func(path util.FullPath) (childDirectories []string, err erro
|
||||||
// No action if the directory has been visited before or does not exist.
|
// No action if the directory has been visited before or does not exist.
|
||||||
// A leaf node, which has no children, represents a directory not visited.
|
// A leaf node, which has no children, represents a directory not visited.
|
||||||
// A non-leaf node or a non-existing node represents a directory already visited, or does not need to visit.
|
// A non-leaf node or a non-existing node represents a directory already visited, or does not need to visit.
|
||||||
func (t *BoundedTree) EnsureVisited(p util.FullPath, visitFn VisitNodeFunc) (visitErr error){
|
func (t *BoundedTree) EnsureVisited(p util.FullPath, visitFn VisitNodeFunc) (visitErr error) {
|
||||||
t.Lock()
|
t.Lock()
|
||||||
defer t.Unlock()
|
defer t.Unlock()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue