shorter repl key

This commit is contained in:
Sergey Cherepanov 2023-01-13 15:40:20 +03:00 committed by Mikhail Iudin
parent f95ee94f62
commit 42b0a2a38b
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -26,6 +26,7 @@ import (
"github.com/anytypeio/any-sync/util/keys/asymmetric/signingkey" "github.com/anytypeio/any-sync/util/keys/asymmetric/signingkey"
"github.com/zeebo/errs" "github.com/zeebo/errs"
"go.uber.org/zap" "go.uber.org/zap"
"strconv"
"sync" "sync"
"sync/atomic" "sync/atomic"
"time" "time"
@ -65,7 +66,7 @@ type SpaceDescription struct {
} }
func NewSpaceId(id string, repKey uint64) string { 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 { type Space interface {