forked from TrueCloudLab/frostfs-node
[#752] morph: Drop loop copy kludges
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
4f62fded01
commit
6950312967
1 changed files with 0 additions and 2 deletions
|
@ -310,7 +310,6 @@ func (s *subscriber) restoreSubscriptions(notifCh chan<- *state.ContainedNotific
|
||||||
|
|
||||||
// notification events restoration
|
// notification events restoration
|
||||||
for contract := range s.subscribedEvents {
|
for contract := range s.subscribedEvents {
|
||||||
contract := contract // See https://github.com/nspcc-dev/neo-go/issues/2890
|
|
||||||
_, err = s.client.ReceiveExecutionNotifications(contract, notifCh)
|
_, err = s.client.ReceiveExecutionNotifications(contract, notifCh)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Error(logs.ClientCouldNotRestoreNotificationSubscriptionAfterRPCSwitch, zap.Error(err))
|
s.log.Error(logs.ClientCouldNotRestoreNotificationSubscriptionAfterRPCSwitch, zap.Error(err))
|
||||||
|
@ -320,7 +319,6 @@ func (s *subscriber) restoreSubscriptions(notifCh chan<- *state.ContainedNotific
|
||||||
|
|
||||||
// notary notification events restoration
|
// notary notification events restoration
|
||||||
for signer := range s.subscribedNotaryEvents {
|
for signer := range s.subscribedNotaryEvents {
|
||||||
signer := signer // See https://github.com/nspcc-dev/neo-go/issues/2890
|
|
||||||
_, err = s.client.ReceiveNotaryRequests(signer, notaryCh)
|
_, err = s.client.ReceiveNotaryRequests(signer, notaryCh)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
s.log.Error(logs.ClientCouldNotRestoreNotaryNotificationSubscriptionAfterRPCSwitch, zap.Error(err))
|
s.log.Error(logs.ClientCouldNotRestoreNotaryNotificationSubscriptionAfterRPCSwitch, zap.Error(err))
|
||||||
|
|
Loading…
Reference in a new issue