go fmt
This commit is contained in:
@@ -10,7 +10,6 @@ import (
|
|||||||
"github.com/viant/ptrie"
|
"github.com/viant/ptrie"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DirectoryEtc = "/etc"
|
DirectoryEtc = "/etc"
|
||||||
FilerConfName = "filer.conf"
|
FilerConfName = "filer.conf"
|
||||||
|
|||||||
@@ -137,4 +137,3 @@ func (so *StorageOption) ToAssignRequests(count int) (ar *VolumeAssignRequest, a
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ func IsRename(event *SubscribeMetadataResponse) bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var _ = ptrie.KeyProvider(&FilerConf_PathConf{})
|
var _ = ptrie.KeyProvider(&FilerConf_PathConf{})
|
||||||
|
|
||||||
func (fp *FilerConf_PathConf) Key() interface{} {
|
func (fp *FilerConf_PathConf) Key() interface{} {
|
||||||
return fp.LocationPrefix
|
return fp.LocationPrefix
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ func (fs *FilerServer) DeleteHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.WriteHeader(http.StatusNoContent)
|
w.WriteHeader(http.StatusNoContent)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fs *FilerServer) detectStorageOption(requestURI, qCollection, qReplication string, ttlSeconds int32, dataCenter, rack string) (*operation.StorageOption) {
|
func (fs *FilerServer) detectStorageOption(requestURI, qCollection, qReplication string, ttlSeconds int32, dataCenter, rack string) *operation.StorageOption {
|
||||||
collection := util.Nvl(qCollection, fs.option.Collection)
|
collection := util.Nvl(qCollection, fs.option.Collection)
|
||||||
replication := util.Nvl(qReplication, fs.option.DefaultReplication)
|
replication := util.Nvl(qReplication, fs.option.DefaultReplication)
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ func (fs *FilerServer) detectStorageOption(requestURI, qCollection, qReplication
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (fs *FilerServer) detectStorageOption0(requestURI, qCollection, qReplication string, qTtl string, dataCenter, rack string) (*operation.StorageOption) {
|
func (fs *FilerServer) detectStorageOption0(requestURI, qCollection, qReplication string, qTtl string, dataCenter, rack string) *operation.StorageOption {
|
||||||
|
|
||||||
ttl, err := needle.ReadTTL(qTtl)
|
ttl, err := needle.ReadTTL(qTtl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user