From 1d13054834bf7dbd11722bcc7d9749d30feda2ff Mon Sep 17 00:00:00 2001 From: AstaFrode Date: Wed, 31 Jul 2024 20:44:21 +0800 Subject: [PATCH] update sdk and version (#165) --- cmd/cmd/run.go | 9 --------- configs/system.go | 5 +---- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 4 insertions(+), 16 deletions(-) diff --git a/cmd/cmd/run.go b/cmd/cmd/run.go index c95c0ed..054fc5a 100644 --- a/cmd/cmd/run.go +++ b/cmd/cmd/run.go @@ -381,15 +381,6 @@ func buildDir(workspace string) (string, string, string, string, error) { return "", "", "", "", err } - ufileDir := filepath.Join(workspace, configs.Ufile) - if err := os.MkdirAll(ufileDir, 0755); err != nil { - return "", "", "", "", err - } - dfileDir := filepath.Join(workspace, configs.Dfile) - if err := os.MkdirAll(dfileDir, 0755); err != nil { - return "", "", "", "", err - } - //make file cache dir fileCache := filepath.Join(workspace, configs.FILE_CACHE) if err := os.MkdirAll(fileCache, 0755); err != nil { diff --git a/configs/system.go b/configs/system.go index 14f0f8c..2f92ff8 100644 --- a/configs/system.go +++ b/configs/system.go @@ -14,7 +14,7 @@ const ( // Name space NameSpace = Name // version - Version = Name + " " + "v0.3.7 pre-release" + Version = Name + " " + "v0.3.7" // description Description = "Object storage service based on CESS network" ) @@ -29,8 +29,5 @@ const ( // Feedback = "feedback" // - Ufile = "ufile" - // - Dfile = "dfile" FILE_CACHE = "filecache" ) diff --git a/go.mod b/go.mod index 4d6f059..05113ce 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21 toolchain go1.22.4 require ( - github.com/CESSProject/cess-go-sdk v0.6.0 + github.com/CESSProject/cess-go-sdk v0.6.1 github.com/CESSProject/cess-go-tools v0.2.12 github.com/CESSProject/go-keyring v0.0.0-20220614131247-ee3a8da30fde github.com/CESSProject/p2p-go v0.4.0 diff --git a/go.sum b/go.sum index 1635259..1fb30fa 100644 --- a/go.sum +++ b/go.sum @@ -9,8 +9,8 @@ dmitri.shuralyov.com/state v0.0.0-20180228185332-28bcc343414c/go.mod h1:0PRwlb0D git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGynbRyZ4dJvy6G277gSllfV2HJqblrnkyeyg= github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/CESSProject/cess-go-sdk v0.6.0 h1:QinJuZeDrBRYgkSN34NgR5u30vg5DS8zyfwYiIKl38Y= -github.com/CESSProject/cess-go-sdk v0.6.0/go.mod h1:L5IDeS2ydsdgtdybzhWk9fIdBsDkU2XrQyo5mrWHkdQ= +github.com/CESSProject/cess-go-sdk v0.6.1 h1:ZjrpoSjBbLv+Eqpsq03qEQkehL3hG/AQuVPEk7cUah0= +github.com/CESSProject/cess-go-sdk v0.6.1/go.mod h1:L5IDeS2ydsdgtdybzhWk9fIdBsDkU2XrQyo5mrWHkdQ= github.com/CESSProject/cess-go-tools v0.2.12 h1:VqghaGaWgL+JelKXCXaABj4rCDFFRdbhiXifyMpkjqo= github.com/CESSProject/cess-go-tools v0.2.12/go.mod h1:ov1vSPbTlBSRWl3XqsibrKrK9smIq2hWeGs0TEhactc= github.com/CESSProject/go-keyring v0.0.0-20220614131247-ee3a8da30fde h1:5MDRjjtg6PEhqyVjupwaapN96cOZiddOGAYwKQeaTu0=