summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-08 09:45:00 +0200
committerPaul Buetow <paul@buetow.org>2024-02-08 09:45:00 +0200
commitc7972bcaccecba8f06cd1a594e2a1267d31f735c (patch)
tree4dc74f13d64c56501cda2295e9735bce103e505b /main.go
parent00ddc641a4a38fa0d68ada23e36b8c6a9b841a23 (diff)
fix deprecation messages
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)
}