From b978a7d94fa9bed74a9348392c843886fc7aefff Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Thu, 31 Aug 2023 20:45:57 +0200 Subject: [PATCH] Add force request to coordinator client --- coordinator/coordinatorclient/coordinatorclient.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/coordinator/coordinatorclient/coordinatorclient.go b/coordinator/coordinatorclient/coordinatorclient.go index 04e19855..4bfa42f2 100644 --- a/coordinator/coordinatorclient/coordinatorclient.go +++ b/coordinator/coordinatorclient/coordinatorclient.go @@ -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)