Skip to content

Fix error tracking for entry cache telemetry#2091

Merged
azdagron merged 1 commit intospiffe:masterfrom
azdagron:fix-error-tracking-for-entry-cache-telemetry
Jan 29, 2021
Merged

Fix error tracking for entry cache telemetry#2091
azdagron merged 1 commit intospiffe:masterfrom
azdagron:fix-error-tracking-for-entry-cache-telemetry

Conversation

@azdagron
Copy link
Member

The lack of a named error variable (and an accidental capture) was preventing the deferred call counter done method from picking up the error returned from building the cache.

This change fixes the bug by naming the error variable in the closure.

The lack of a named error variable (and an accidental capture) was
preventing the deferred call counter done method from picking up the
error returned from building the cache.

This change fixes the bug by naming the error variable in the closure.

Signed-off-by: Andrew Harding <aharding@vmware.com>
Copy link
Collaborator

@rturner3 rturner3 left a comment

Choose a reason for hiding this comment

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

Good catch!

@azdagron azdagron merged commit 39deb89 into spiffe:master Jan 29, 2021
@azdagron azdagron deleted the fix-error-tracking-for-entry-cache-telemetry branch January 29, 2021 22:04
@azdagron azdagron added this to the 0.12.2 milestone Mar 23, 2021
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