mirror of
https://github.com/logos-storage/logos-storage-network-crawler.git
synced 2026-01-17 04:43:11 +00:00
25 lines
603 B
Nim
25 lines
603 B
Nim
import ../../codexcrawler/state
|
|
import ../../codexcrawler/utils/asyncdataevent
|
|
import ../../codexcrawler/types
|
|
import ../../codexcrawler/config
|
|
|
|
type
|
|
MockState* = ref object of State
|
|
# config*: Config
|
|
# events*: Events
|
|
|
|
|
|
proc createMockState*(): MockState =
|
|
MockState(
|
|
config: Config(),
|
|
events: Events(
|
|
nodesFound: newAsyncDataEvent[seq[Nid]](),
|
|
newNodesDiscovered: newAsyncDataEvent[seq[Nid]](),
|
|
dhtNodeCheck: newAsyncDataEvent[DhtNodeCheckEventData](),
|
|
nodesExpired: newAsyncDataEvent[seq[Nid]](),
|
|
),
|
|
)
|
|
|
|
proc cleanupMock*(this: MockState) =
|
|
discard
|