mirror of
https://github.com/logos-storage/swarmsim.git
synced 2026-01-03 22:33:11 +00:00
11 lines
327 B
Nim
11 lines
327 B
Nim
import ./types
|
|
|
|
method uncheckedDeliver(self: Protocol, message: Message): void {.base.} =
|
|
raise newException(CatchableError, "Method without implementation override")
|
|
|
|
proc deliver*(self: Protocol, message: Message): void =
|
|
assert(self.messageType == message.messageType)
|
|
self.uncheckedDeliver(message)
|
|
|
|
export Protocol
|