chore: upgrade dependencies v0.22 (#2185)

This commit is contained in:
gabrielmer 2023-11-06 13:30:34 +02:00 committed by GitHub
parent fa467e2462
commit b9563ae0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 20 additions and 30 deletions

View File

@ -96,7 +96,8 @@ proc process*(self: ptr RelayRequest,
case self.operation: case self.operation:
of SUBSCRIBE: of SUBSCRIBE:
node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback) # TO DO: properly perform 'subscribe'
discard node.wakuRelay.subscribe($self.pubsubTopic, self.relayEventCallback)
of UNSUBSCRIBE: of UNSUBSCRIBE:
# TODO: properly perform 'unsubscribe' # TODO: properly perform 'unsubscribe'

@ -1 +1 @@
Subproject commit 1922045dbaa34c2fae86a32dda0e2ac56f1cf435 Subproject commit d1d34b9490f99fa2052ffcff2bcf0edaf42d1bdd

2
vendor/nim-chronos vendored

@ -1 +1 @@
Subproject commit 2e8551b0d973cfbebfab3be7f3329e11b9049007 Subproject commit be2edab3ac101da03a70cbf52bc3f3d972b35d91

@ -1 +1 @@
Subproject commit 674c9e4c8e0cad2b7193cc9a59c12d39a397750f Subproject commit 7568f1b7c3142d8e87c1f3dd42924238926affbe

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit ac680ed79bf9e4e78ca14a001eb7f78acdf7b07d Subproject commit 700360fde2cf91c0c6d66af42851ee21c947e23a

@ -1 +1 @@
Subproject commit 87b7cbf032c90b9e6b446081f4a647e950362cec Subproject commit 4a46dcc4c0c6c4a53715602d4cfd47a032ab8582

2
vendor/nim-presto vendored

@ -1 +1 @@
Subproject commit 81250a419bc097a9e93f2ab69de60543eee07138 Subproject commit 5ca16485e4d74e531d50d289ebc0f869d9e6352b

2
vendor/nim-regex vendored

@ -1 +1 @@
Subproject commit f080b198e21dc013551ade831bb0338871e03bc5 Subproject commit 577c4ec3b235c5fd2653a9c86cbc4a576cfc0869

@ -1 +1 @@
Subproject commit 4bdbc29e54fe54049950e352bb969aab97173b35 Subproject commit 543b2f3dd0724f7cf631feba6c2a3ec438f3d230

2
vendor/nim-stint vendored

@ -1 +1 @@
Subproject commit 54e24cae415b1bed39a987ecd08c19a34f740972 Subproject commit 711cda4456c32d3ba3c6c4524135b3453dffeb9c

@ -1 +1 @@
Subproject commit b055310c08db8f879057b4fec15c8301ee93bb2a Subproject commit 04a154eee0b8a2ad313e24ba46a4e5b4e0b9036f

@ -1 +1 @@
Subproject commit 2300fa9924a76e6c96bc4ea79d043e3a0f27120c Subproject commit 91973dfa3823a8b423abdce59ac19de0a17ef9c1

2
vendor/nim-web3 vendored

@ -1 +1 @@
Subproject commit 70f22351c44b849a321b78b94dc0f9cd4ac9a5e1 Subproject commit 428b931e7c4f1284b4272bc2c11fca2bd70991cd

@ -1 +1 @@
Subproject commit 81ce5fc7521e400ceababde59b4a90fe7da8919d Subproject commit 6cdd14282b7c813c2ae4b9a9d749c3ff5ce1b54a

2
vendor/nimcrypto vendored

@ -1 +1 @@
Subproject commit 1c8d6e3caf3abc572136ae9a1da81730c4eb4288 Subproject commit a079df92424968d46a6ac258299ce9380aa153f2

View File

@ -6,28 +6,17 @@ import
chronicles/log_output, chronicles/log_output,
chronicles/topics_registry chronicles/topics_registry
export chronicles.LogLevel
when (NimMajor, NimMinor) < (1, 4): when (NimMajor, NimMinor) < (1, 4):
{.push raises: [Defect].} {.push raises: [Defect].}
else: else:
{.push raises: [].} {.push raises: [].}
type type
LogLevel* = enum
TRACE, DEBUG, INFO, NOTICE, WARN, ERROR, FATAL
LogFormat* = enum LogFormat* = enum
TEXT, JSON TEXT, JSON
converter toChroniclesLogLevel(level: LogLevel): chronicles.LogLevel =
## Map logging log levels to the corresponding nim-chronicles' log level
try:
parseEnum[chronicles.LogLevel]($level)
except CatchableError:
chronicles.LogLevel.NONE
## Utils ## Utils
proc stripAnsi(v: string): string = proc stripAnsi(v: string): string =
@ -82,12 +71,12 @@ proc setupLogLevel*(level: LogLevel) =
topics_registry.setLogLevel(level) topics_registry.setLogLevel(level)
proc setupLogFormat*(format: LogFormat, color=true) = proc setupLogFormat*(format: LogFormat, color=true) =
proc noOutputWriter(logLevel: chronicles.LogLevel, msg: LogOutputStr) = discard proc noOutputWriter(logLevel: LogLevel, msg: LogOutputStr) = discard
proc stdoutOutputWriter(logLevel: chronicles.LogLevel, msg: LogOutputStr) = proc stdoutOutputWriter(logLevel: LogLevel, msg: LogOutputStr) =
writeAndFlush(io.stdout, msg) writeAndFlush(io.stdout, msg)
proc stdoutNoColorOutputWriter(logLevel: chronicles.LogLevel, msg: LogOutputStr) = proc stdoutNoColorOutputWriter(logLevel: LogLevel, msg: LogOutputStr) =
writeAndFlush(io.stdout, stripAnsi(msg)) writeAndFlush(io.stdout, stripAnsi(msg))