clean up UnusedImport and Deprecated warnings (#5813)

This commit is contained in:
tersec 2024-01-22 16:35:19 +00:00 committed by GitHub
parent 6328c77778
commit 4fd3177dab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -2262,8 +2262,7 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
info "Adding privileged direct peer", peerId, address
res
hostAddress = tcpEndPoint(
ValidIpAddress.init config.listenAddress, config.tcpPort)
hostAddress = tcpEndPoint(config.listenAddress, config.tcpPort)
announcedAddresses =
if extIp.isNone() or extTcpPort.isNone(): @[]
else: @[tcpEndPoint(extIp.get(), extTcpPort.get())]

View File

@ -6,14 +6,10 @@
# at your option. This file may not be copied, modified, or distributed except according to those terms.
import
std/parsecsv,
stew/[io2, byteutils], chronicles, confutils, snappy,
../beacon_chain/spec/datatypes/base,
./ncli_common
from std/os import fileExists
from std/strutils import parseBiggestInt, parseBiggestUInt
type
AggregatorConf = object
startEpoch {.
@ -159,6 +155,9 @@ proc advanceEpochs*(aggregator: var ValidatorDbAggregator, epoch: Epoch,
when isMainModule:
import std/streams
from std/os import fileExists
from std/parsecsv import CsvParser, CsvRow, open, readRow
from std/strutils import parseBiggestInt, parseBiggestUInt
when defined(posix):
import system/ansi_c