mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-03-01 18:03:08 +00:00
formatting
This commit is contained in:
parent
04f7c6cfd5
commit
33f7ebfa4f
@ -136,9 +136,11 @@ type
|
||||
.}: OutDir
|
||||
|
||||
listenPort* {.
|
||||
desc: "Port to listen on for remote peer connections. Announced in the DHT as /ip4/0.0.0.0/tcp/",
|
||||
desc:
|
||||
"Port to listen on for remote peer connections. Announced in the DHT as /ip4/0.0.0.0/tcp/",
|
||||
defaultValue: 0,
|
||||
defaultValueDesc: "Chooses a random port for the MultiAddress, eg /ip4/0.0.0.0/tcp/0",
|
||||
defaultValueDesc:
|
||||
"Chooses a random port for the MultiAddress, eg /ip4/0.0.0.0/tcp/0",
|
||||
abbr: "l",
|
||||
name: "listen-port"
|
||||
.}: int
|
||||
|
||||
@ -139,10 +139,10 @@ proc new*(
|
||||
T: type StorageServer, config: StorageConf, privateKey: StoragePrivateKey
|
||||
): StorageServer =
|
||||
## create StorageServer including setting up datastore, repostore, etc
|
||||
let listenAddr = MultiAddress
|
||||
.init(DefaultListenAddress & $config.listenPort)
|
||||
.expect("Default multiaddress and provied port not valid")
|
||||
|
||||
let listenAddr = MultiAddress.init(DefaultListenAddress & $config.listenPort).expect(
|
||||
"Default multiaddress and provied port not valid"
|
||||
)
|
||||
|
||||
let switch = SwitchBuilder
|
||||
.new()
|
||||
.withPrivateKey(privateKey)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user