-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error message in BPFMap.Update (#29)
When trying to obtain an unsafe pointer to the value type, upon failure the code was incorrectly returning an error message which contained the type of the key, not the value. This patch fixes it so that the correct type is returned for the value in the error message. Additionally this commit contains a small refactor which uses a type switch rather than if-else statements for readability.
- Loading branch information
1 parent
2245dce
commit 8ce3840
Showing
1 changed file
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters