mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-06-27 12:59:30 +00:00
fix copilots suggestions
This commit is contained in:
parent
f091442372
commit
074fe53618
@ -105,6 +105,7 @@ components:
|
||||
- addrs
|
||||
- spr
|
||||
- announceAddresses
|
||||
- libp2pPubKey
|
||||
- table
|
||||
- storage
|
||||
properties:
|
||||
@ -116,10 +117,18 @@ components:
|
||||
$ref: "#/components/schemas/MultiAddress"
|
||||
spr:
|
||||
$ref: "#/components/schemas/SPR"
|
||||
providerRecord:
|
||||
$ref: "#/components/schemas/SPR"
|
||||
announceAddresses:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/MultiAddress"
|
||||
libp2pPubKey:
|
||||
type: string
|
||||
description: Hex-encoded libp2p public key of the node
|
||||
mixPubKey:
|
||||
type: string
|
||||
description: Hex-encoded mix public key (present only for nodes that support mix)
|
||||
table:
|
||||
$ref: "#/components/schemas/PeersTable"
|
||||
storage:
|
||||
|
||||
@ -6,6 +6,7 @@ import pkg/libp2p_mix
|
||||
import pkg/libp2p_mix/curve25519
|
||||
import pkg/codexdht/discv5/node as dn
|
||||
import pkg/codexdht/discv5/routing_table as rt
|
||||
import pkg/stew/byteutils
|
||||
import ../node
|
||||
import ../conf
|
||||
import ../utils/json
|
||||
@ -108,7 +109,7 @@ proc init*(_: type DebugInfo, node: StorageNodeRef): DebugInfo =
|
||||
peerId = peerInfo.peerId
|
||||
libp2pPubKeyBytes = peerInfo.publicKey.getBytes()
|
||||
|
||||
# Cause there's no cannonical way to get your own key from MixProtocol
|
||||
# Cause there's no canonical way to get your own key from MixProtocol
|
||||
# that I'm aware of.
|
||||
privateAccess(MixProtocol)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user