From 0739bac11cb02763771291db9e783b7246d87ef6 Mon Sep 17 00:00:00 2001 From: "Mahlon E. Smith" Date: Wed, 20 Oct 2021 11:41:30 -0700 Subject: [PATCH] Update quitProc for nim 1.6 deprecation warning. --- Makefile | 2 +- netdata_tsrelay.nim | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 088aca9..5dccf89 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ debugger: ${FILES} nim --debugger:on --nimcache:.cache c ${FILES} release: ${FILES} - nim -d:release --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES} + nim -d:release -d:nimDebugDlOpen --opt:speed --parallelBuild:0 --nimcache:.cache c ${FILES} docs: nim doc ${FILES} diff --git a/netdata_tsrelay.nim b/netdata_tsrelay.nim index 380aebd..b4c7502 100644 --- a/netdata_tsrelay.nim +++ b/netdata_tsrelay.nim @@ -31,11 +31,11 @@ import db_postgres, json, - math, nativesockets, net, parseopt, posix, + std/exitprocs, strutils, strformat, tables, @@ -382,7 +382,7 @@ proc parse_cmdline: Config = when isMainModule: - system.addQuitProc( resetAttributes ) + addExitProc( resetAttributes ) conf = parse_cmdline() if conf.debug: echo hl( $conf, fgYellow ) serverloop( conf )