Skip to content

bug: Fix non-deferred time.Since calls in instrumentation#515

Merged
tungng98 merged 1 commit intoBuildOnViction:pre-releasefrom
fivecut:master
May 26, 2025
Merged

bug: Fix non-deferred time.Since calls in instrumentation#515
tungng98 merged 1 commit intoBuildOnViction:pre-releasefrom
fivecut:master

Conversation

@fivecut
Copy link
Copy Markdown
Contributor

@fivecut fivecut commented Apr 16, 2025

This fixes static analysis warnings by wrapping time.Since calls with defer in logging instrumentation. The anonymous function pattern ensures accurate timing measurement from function start to exit. Affected areas include transaction validation, availability checks, and pool operations.

Signed-off-by: fivecut <fivecut@126.com>
Copy link
Copy Markdown
Collaborator

@tungng98 tungng98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tungng98 tungng98 changed the base branch from master to pre-release May 26, 2025 03:31
@tungng98 tungng98 merged commit 2e1cd29 into BuildOnViction:pre-release May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants