1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-11 10:18:08 +09:00

Add force request to coordinator client

This commit is contained in:
mcrakhman 2023-08-31 20:45:57 +02:00
parent 1b903118c6
commit b978a7d94f
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -37,10 +37,11 @@ type CoordinatorClient interface {
} }
type SpaceSignPayload struct { type SpaceSignPayload struct {
SpaceId string SpaceId string
SpaceHeader []byte SpaceHeader []byte
OldAccount crypto.PrivKey OldAccount crypto.PrivKey
Identity crypto.PrivKey Identity crypto.PrivKey
ForceRequest bool
} }
type coordinatorClient struct { type coordinatorClient struct {
@ -143,6 +144,7 @@ func (c *coordinatorClient) SpaceSign(ctx context.Context, payload SpaceSignPayl
Header: payload.SpaceHeader, Header: payload.SpaceHeader,
OldIdentity: oldIdentity, OldIdentity: oldIdentity,
NewIdentitySignature: newSignature, NewIdentitySignature: newSignature,
ForceRequest: payload.ForceRequest,
}) })
if err != nil { if err != nil {
return rpcerr.Unwrap(err) return rpcerr.Unwrap(err)