mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-01-05 23:13:11 +00:00
15 lines
332 B
Nim
15 lines
332 B
Nim
|
|
import pkg/chronos
|
||
|
|
import pkg/questionable/results
|
||
|
|
|
||
|
|
import ./state
|
||
|
|
|
||
|
|
type
|
||
|
|
Component* = ref object of RootObj
|
||
|
|
|
||
|
|
method start*(c: Component, state: State): Future[?!void] {.async, base.} =
|
||
|
|
raiseAssert("call to abstract method")
|
||
|
|
|
||
|
|
method stop*(c: Component): Future[?!void] {.async, base.} =
|
||
|
|
raiseAssert("call to abstract method")
|
||
|
|
|