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:
parent
1b903118c6
commit
b978a7d94f
1 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue