From 42b0a2a38bf8a7485c2ddc513077270641644cae Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Fri, 13 Jan 2023 15:40:20 +0300 Subject: [PATCH] shorter repl key --- commonspace/space.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commonspace/space.go b/commonspace/space.go index 7f9936fc..9c16333d 100644 --- a/commonspace/space.go +++ b/commonspace/space.go @@ -26,6 +26,7 @@ import ( "github.com/anytypeio/any-sync/util/keys/asymmetric/signingkey" "github.com/zeebo/errs" "go.uber.org/zap" + "strconv" "sync" "sync/atomic" "time" @@ -65,7 +66,7 @@ type SpaceDescription struct { } func NewSpaceId(id string, repKey uint64) string { - return fmt.Sprintf("%s.%d", id, repKey) + return fmt.Sprintf("%s.%s", id, strconv.FormatUint(repKey, 36)) } type Space interface {