mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 07:07:25 +08:00
go mod
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"go.etcd.io/etcd/clientv3"
|
||||
"go.etcd.io/etcd/client/v3"
|
||||
|
||||
"github.com/chrislusf/seaweedfs/weed/filer"
|
||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||
|
@@ -10,6 +10,7 @@ Note :
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"go.etcd.io/etcd/client"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -19,7 +20,6 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/chrislusf/seaweedfs/weed/glog"
|
||||
"go.etcd.io/etcd/client"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -1,21 +0,0 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"golang.org/x/tools/godoc/util"
|
||||
)
|
||||
|
||||
func TestIsGzippable(t *testing.T) {
|
||||
buf := make([]byte, 1024)
|
||||
|
||||
isText := util.IsText(buf)
|
||||
|
||||
if isText {
|
||||
t.Error("buf with zeros are not text")
|
||||
}
|
||||
|
||||
compressed, _ := GzipData(buf)
|
||||
|
||||
t.Logf("compressed size %d\n", len(compressed))
|
||||
}
|
Reference in New Issue
Block a user