fix(archive): fix message validator error metric labels

This commit is contained in:
Lorenzo Delgado 2022-11-25 02:06:42 +01:00 committed by GitHub
parent bc0fab345a
commit 08313ef732

View File

@ -91,7 +91,7 @@ proc handleMessage*(w: WakuArchive, pubsubTopic: PubsubTopic, msg: WakuMessage)
if not w.validator.isNil():
let validationRes = w.validator.validate(msg)
if validationRes.isErr():
waku_archive_errors.inc(labelValues = [invalidMessage])
waku_archive_errors.inc(labelValues = [validationRes.error])
return