mirror of
https://github.com/logos-storage/swarmsim.git
synced 2026-01-02 13:53:07 +00:00
change lifecycle event handler name
This commit is contained in:
parent
df3bd77384
commit
ed0b88c990
@ -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):
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -25,7 +25,7 @@ method deliver*(
|
||||
|
||||
method `protocolId`*(self: Inbox): string = self.protocolId
|
||||
|
||||
method onLifecycleEventType*(
|
||||
method onPeerLifecycleChange*(
|
||||
self: Inbox,
|
||||
peer: Peer,
|
||||
event: LifecycleEventType,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user