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

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