mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 22:13:12 +00:00
Provide better comments
This commit is contained in:
parent
82fea5ee4c
commit
11bbc255cb
@ -1,4 +1,8 @@
|
||||
## This file contains the lifecycle request type that will be handled.
|
||||
{.push raises: [].}
|
||||
|
||||
## This file contains the debug info available with Codex.
|
||||
## The DEBUG type will return info about the P2P node.
|
||||
## The PEER type will return info about a specific peer if available.
|
||||
|
||||
import std/[options]
|
||||
import chronos
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
## This file contains the lifecycle request type that will be handled.
|
||||
## CREATE_NODE: create a new Codex node with the provided config.json.
|
||||
## START_NODE: start the provided Codex node.
|
||||
## STOP_NODE: stop the provided Codex node.
|
||||
|
||||
import std/[options, json, strutils, net, os]
|
||||
import confutils/defs
|
||||
import codexdht/discv5/spr
|
||||
import stew/shims/parseutils
|
||||
import contractabi/address
|
||||
@ -10,6 +12,7 @@ import chronicles
|
||||
import results
|
||||
import confutils
|
||||
import confutils/std/net
|
||||
import confutils/defs
|
||||
import libp2p
|
||||
import json_serialization
|
||||
import json_serialization/std/[options, net]
|
||||
@ -17,6 +20,7 @@ import ../../alloc
|
||||
import ../../../codex/conf
|
||||
import ../../../codex/utils
|
||||
import ../../../codex/utils/[keyutils, fileutils]
|
||||
import ../../../codex/units
|
||||
|
||||
from ../../../codex/codex import CodexServer, new, start, stop
|
||||
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
## This file contains the lifecycle request type that will be handled.
|
||||
{.push raises: [].}
|
||||
|
||||
## This file contains the P2p request type that will be handled.
|
||||
## CONNECT: connect to a peer with the provided peer ID and optional addresses.
|
||||
|
||||
import std/[options]
|
||||
import chronos
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user