From 3c0878585feefa3d767ea2f88272f53d54231bef Mon Sep 17 00:00:00 2001 From: Jayash Satolia <73050737+Jayashsatolia403@users.noreply.github.com> Date: Mon, 14 Aug 2023 19:01:00 +0530 Subject: [PATCH] Fix validator diagnostics (#1208) * Added stats for validator * Beautify * Fix lint * Added mutex * Added mutex for getters * Added mutex for getters * Remove redundant locking and unlocking * Fix --- code/go/0chain.net/validatorcore/storage/challenge_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/go/0chain.net/validatorcore/storage/challenge_handler.go b/code/go/0chain.net/validatorcore/storage/challenge_handler.go index 1c0ae101b..e88aaba8f 100644 --- a/code/go/0chain.net/validatorcore/storage/challenge_handler.go +++ b/code/go/0chain.net/validatorcore/storage/challenge_handler.go @@ -53,7 +53,7 @@ func challengeHandler(ctx context.Context, r *http.Request) (interface{}, error) return InvalidValidationTicket(challengeObj, err) } - updateStats(false) + updateStats(true) return ValidValidationTicket(challengeObj, challengeRequest.ChallengeID, challengeHash) }