summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 77fe40d..df21bae 100644
--- a/main.go
+++ b/main.go
@@ -20,11 +20,11 @@ func resizeMap(module *bpf.Module, name string, size uint32) error {
return err
}
- if err = m.Resize(size); err != nil {
+ if err = m.SetMaxEntries(size); err != nil {
return err
}
- if actual := m.GetMaxEntries(); actual != size {
+ if actual := m.MaxEntries(); actual != size {
return fmt.Errorf("map resize failed, expected %v, actual %v", size, actual)
}