diff --git a/go.mod b/go.mod index ee7ad2dc..1f76d5aa 100644 --- a/go.mod +++ b/go.mod @@ -61,7 +61,6 @@ require ( github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529 // indirect github.com/valyala/fastrand v1.1.0 // indirect github.com/valyala/histogram v1.2.0 // indirect - github.com/yhat/wsutil v0.0.0-20170731153501-1d66fa95c997 // indirect go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.14.0 // indirect golang.org/x/crypto v0.11.0 // indirect golang.org/x/exp v0.0.0-20230728194245-b0cb94b80691 // indirect diff --git a/go.sum b/go.sum index 4d1dea86..e5035777 100644 --- a/go.sum +++ b/go.sum @@ -550,8 +550,6 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1: github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0/go.mod h1:/LWChgwKmvncFJFHJ7Gvn9wZArjbV5/FppcK2fKk/tI= -github.com/yhat/wsutil v0.0.0-20170731153501-1d66fa95c997 h1:1+FQ4Ns+UZtUiQ4lP0sTCyKSQ0EXoiwAdHZB0Pd5t9Q= -github.com/yhat/wsutil v0.0.0-20170731153501-1d66fa95c997/go.mod h1:DIGbh/f5XMAessMV/uaIik81gkDVjUeQ9ApdaU7wRKE= github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg= github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82/go.mod h1:lgjkn3NuSvDfVJdfcVVdX+jpBxNmX4rDAzaS45IcYoM= github.com/yudai/pp v2.0.1+incompatible/go.mod h1:PuxR/8QJ7cyCkFp/aUDS+JY727OFEZkTdatxwunjIkc= diff --git a/shared/main_test.go b/shared/main_test.go index 10ad0958..14176011 100644 --- a/shared/main_test.go +++ b/shared/main_test.go @@ -3,17 +3,17 @@ package shared import "testing" func TestMain(t *testing.T) { - test1() + } func TestNodeA(t *testing.T) { - test1() + } func TestNodeB(t *testing.T) { - test1() + } func TestNodeC(t *testing.T) { - test1() + } diff --git a/shared/sm.go b/shared/sm.go index 117ca7b4..e40e18c1 100644 --- a/shared/sm.go +++ b/shared/sm.go @@ -3,7 +3,6 @@ package shared import ( "context" "encoding/gob" - "fusenapi/initalize" "io" "sync" @@ -29,7 +28,7 @@ func NewFsStateMachine(shardID uint64, replicaID uint64) sm.IStateMachine { shardID: shardID, replicaID: replicaID, store: make(map[int64]*UserState), - gdb: initalize.InitMysql("fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest"), + // gdb: initalize.InitMysql("fusentest:XErSYmLELKMnf3Dh@tcp(110.41.19.98:3306)/fusentest"), } }