Skip to content

Commit

Permalink
FIX typo on function name (#15)
Browse files Browse the repository at this point in the history
Co-authored-by: Benoit <benoit@MacBook-Pro-de-Benoit.local>
  • Loading branch information
NothNoth and Benoit committed Apr 2, 2024
1 parent ea0d385 commit fa3d270
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion wirego/example/wirego_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func init() {

//Register to the wirego package
wirego.Register(wge)
wirego.ResultatsCacheEnable(false)
wirego.ResultsCacheEnable(false)
}

// This function is called when the plugin is loaded.
Expand Down
10 changes: 5 additions & 5 deletions wirego/wirego/wirego.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type Wirego struct {
// We use a static "object" here
var wg Wirego

var resultatsCacheEnable bool = true
var resultsCacheEnable bool = true

var pinner runtime.Pinner

Expand All @@ -53,10 +53,10 @@ func Register(listener WiregoInterface) error {
return nil
}

// ResultatsCacheEnable enables or disables the results cache. By default, the results cache is enabled.
// ResultsCacheEnable enables or disables the results cache. By default, the results cache is enabled.
// If re-analyzing a packet makes sense for your protocol, disable this feature.
func ResultatsCacheEnable(enable bool) {
resultatsCacheEnable = enable
func ResultsCacheEnable(enable bool) {
resultsCacheEnable = enable
}

//export wirego_setup
Expand Down Expand Up @@ -256,7 +256,7 @@ func wirego_result_get_field(h C.int, idx C.int, parentIdx *C.int, wiregoFieldId

//export wirego_result_release
func wirego_result_release(h C.int) {
if !resultatsCacheEnable {
if !resultsCacheEnable {
delete(wg.resultsCache, h)
}
}

0 comments on commit fa3d270

Please sign in to comment.