diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-08 09:45:00 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-08 09:45:00 +0200 |
| commit | c7972bcaccecba8f06cd1a594e2a1267d31f735c (patch) | |
| tree | 4dc74f13d64c56501cda2295e9735bce103e505b /main.go | |
| parent | 00ddc641a4a38fa0d68ada23e36b8c6a9b841a23 (diff) | |
fix deprecation messages
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) } |
