"golang.org/x/exp/slices" => "slices" and go fmt
This commit is contained in:
@@ -5,8 +5,8 @@ import (
|
||||
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||
"github.com/seaweedfs/seaweedfs/weed/storage"
|
||||
"github.com/seaweedfs/seaweedfs/weed/storage/types"
|
||||
"golang.org/x/exp/slices"
|
||||
"path"
|
||||
"slices"
|
||||
)
|
||||
|
||||
type OnDiskCacheLayer struct {
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
var (
|
||||
ConfigurationFileDirectory DirectoryValueType
|
||||
loadSecurityConfigOnce sync.Once
|
||||
loadSecurityConfigOnce sync.Once
|
||||
)
|
||||
|
||||
type DirectoryValueType string
|
||||
@@ -32,7 +32,7 @@ type Configuration interface {
|
||||
SetDefault(key string, value interface{})
|
||||
}
|
||||
|
||||
func LoadSecurityConfiguration(){
|
||||
func LoadSecurityConfiguration() {
|
||||
loadSecurityConfigOnce.Do(func() {
|
||||
LoadConfiguration("security", false)
|
||||
})
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"sync"
|
||||
)
|
||||
|
||||
type node[T any]struct {
|
||||
type node[T any] struct {
|
||||
data T
|
||||
next *node[T]
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ package skiplist
|
||||
|
||||
import (
|
||||
"github.com/seaweedfs/seaweedfs/weed/glog"
|
||||
"golang.org/x/exp/slices"
|
||||
"google.golang.org/protobuf/proto"
|
||||
"slices"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user