mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 09:35:03 +09:00
Add force request to coordinator client
This commit is contained in:
parent
1b903118c6
commit
b978a7d94f
1 changed files with 6 additions and 4 deletions
|
@ -37,10 +37,11 @@ type CoordinatorClient interface {
|
|||
}
|
||||
|
||||
type SpaceSignPayload struct {
|
||||
SpaceId string
|
||||
SpaceHeader []byte
|
||||
OldAccount crypto.PrivKey
|
||||
Identity crypto.PrivKey
|
||||
SpaceId string
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue