minor style fixes
This commit is contained in:
parent
f9f75254af
commit
464d75d159
|
@ -9,19 +9,21 @@
|
||||||
|
|
||||||
import sequtils, strutils, strformat
|
import sequtils, strutils, strformat
|
||||||
import chronos, chronicles
|
import chronos, chronicles
|
||||||
import connection,
|
import connection,
|
||||||
varint,
|
varint,
|
||||||
vbuffer,
|
vbuffer,
|
||||||
protocols/protocol
|
protocols/protocol
|
||||||
|
|
||||||
logScope:
|
logScope:
|
||||||
topic = "Multistream"
|
topic = "Multistream"
|
||||||
|
|
||||||
const MsgSize* = 64*1024
|
const
|
||||||
const Codec* = "/multistream/1.0.0"
|
MsgSize* = 64*1024
|
||||||
const MSCodec* = "\x13" & Codec & "\n"
|
Codec* = "/multistream/1.0.0"
|
||||||
const Na = "\x03na\n"
|
|
||||||
const Ls = "\x03ls\n"
|
MSCodec* = "\x13" & Codec & "\n"
|
||||||
|
Na = "\x03na\n"
|
||||||
|
Ls = "\x03ls\n"
|
||||||
|
|
||||||
type
|
type
|
||||||
MultisteamSelectException = object of CatchableError
|
MultisteamSelectException = object of CatchableError
|
||||||
|
|
|
@ -20,10 +20,11 @@ import ../protobuf/minprotobuf,
|
||||||
logScope:
|
logScope:
|
||||||
topic = "identify"
|
topic = "identify"
|
||||||
|
|
||||||
const IdentifyCodec* = "/ipfs/id/1.0.0"
|
const
|
||||||
const IdentifyPushCodec* = "/ipfs/id/push/1.0.0"
|
IdentifyCodec* = "/ipfs/id/1.0.0"
|
||||||
const ProtoVersion* = "ipfs/0.1.0"
|
IdentifyPushCodec* = "/ipfs/id/push/1.0.0"
|
||||||
const AgentVersion* = "nim-libp2p/0.0.1"
|
ProtoVersion* = "ipfs/0.1.0"
|
||||||
|
AgentVersion* = "nim-libp2p/0.0.1"
|
||||||
|
|
||||||
#TODO: implment push identify, leaving out for now as it is not essential
|
#TODO: implment push identify, leaving out for now as it is not essential
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue