From 3550ed9fe425a79d3752f5c636868ff9dbe1f931 Mon Sep 17 00:00:00 2001 From: Leonard Lyubich Date: Wed, 1 Dec 2021 14:21:48 +0300 Subject: [PATCH] [#979] ir/subnet: Fix notification event names Signed-off-by: Leonard Lyubich --- pkg/innerring/subnet.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkg/innerring/subnet.go b/pkg/innerring/subnet.go index 30541dd48..418515be0 100644 --- a/pkg/innerring/subnet.go +++ b/pkg/innerring/subnet.go @@ -85,11 +85,11 @@ func (s *Server) stopSubnet() { // names of listened notification events from Subnet contract. const ( // subnet creation - subnetCreateEvName = "put" + subnetCreateEvName = "Put" // subnet removal - subnetRemoveEvName = "delete" + subnetRemoveEvName = "Delete" // subnet creation (notary) - notarySubnetCreateEvName = "Put" + notarySubnetCreateEvName = "put" ) // makes IR server to listen notifications of Subnet contract. @@ -100,11 +100,10 @@ const ( // // Events (notary): // * put (parser: subnetevents.ParseNotaryPut, handler: catchSubnetCreation); -// * delete (parser: subnetevents.ParseNotaryDelete, handler: catchSubnetRemoval). // // Events (non-notary): -// * put (parser: subnetevents.ParsePut, handler: catchSubnetCreation); -// * delete (parser: subnetevents.ParseDelete, handler: catchSubnetCreation). +// * Put (parser: subnetevents.ParsePut, handler: catchSubnetCreation); +// * Delete (parser: subnetevents.ParseDelete, handler: catchSubnetCreation). func (s *Server) listenSubnet() { if s.sideNotaryConfig.disabled { s.listenSubnetWithoutNotary()