forked from TrueCloudLab/frostfs-node
[#1546] morph/event: Export NotificationHandlerInfo fields
Hiding them achieves nothing, as the struct has no methods and is not used concurrently. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
d0ce835fbf
commit
b1614a284d
8 changed files with 75 additions and 110 deletions
|
@ -157,12 +157,14 @@ func New(p *Params) (*Processor, error) {
|
|||
|
||||
// ListenerNotificationHandlers for the 'event.Listener' event producer.
|
||||
func (gp *Processor) ListenerNotificationHandlers() []event.NotificationHandlerInfo {
|
||||
var hi event.NotificationHandlerInfo
|
||||
hi.SetScriptHash(gp.designate)
|
||||
hi.SetType(event.TypeFromString(native.DesignationEventName))
|
||||
hi.SetParser(rolemanagement.ParseDesignate)
|
||||
hi.AddHandler(gp.HandleAlphabetSync)
|
||||
return []event.NotificationHandlerInfo{hi}
|
||||
return []event.NotificationHandlerInfo{
|
||||
{
|
||||
Contract: gp.designate,
|
||||
Type: event.TypeFromString(native.DesignationEventName),
|
||||
Parser: rolemanagement.ParseDesignate,
|
||||
Handlers: []event.Handler{gp.HandleAlphabetSync},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// ListenerNotaryParsers for the 'event.Listener' event producer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue