change lifecycle event handler name

This commit is contained in:
gmega 2023-08-29 17:32:40 -03:00
parent df3bd77384
commit ed0b88c990
3 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,7 @@ method atScheduledTime*(self: PeerLifecycleChange,
# ... but self-transitions do not get reported downstream.
if oldState != newState:
self.peer.protocols.values.toSeq.apply(p =>
p.onLifecycleEventType(self.peer, self.event, self.network))
p.onPeerLifecycleChange(self.peer, self.event, self.network))
proc getProtocol*(self: Peer, id: string): Option[Protocol] =
if self.protocols.hasKey(id):

View File

@ -15,7 +15,7 @@ method deliver*(
): void {.base.} =
raise newException(CatchableError, "Method without implementation override")
method onLifecycleEventType*(
method onPeerLifecycleChange*(
self: Protocol,
peer: Peer,
event: LifecycleEventType,

View File

@ -25,7 +25,7 @@ method deliver*(
method `protocolId`*(self: Inbox): string = self.protocolId
method onLifecycleEventType*(
method onPeerLifecycleChange*(
self: Inbox,
peer: Peer,
event: LifecycleEventType,