Skip to content

Commit ac49cd8

Browse files
committed
Fix hashmap access in direct_assign.py
1 parent af44bd0 commit ac49cd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/failing_tests/direct_assign.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ def count() -> HashMap:
2626
@bpf
2727
@section("xdp")
2828
def hello_world(ctx: c_void_p) -> c_int64:
29-
prev = count().lookup(0)
29+
prev = count.lookup(0)
3030
if prev:
31-
count().update(0, prev + 1)
31+
count.update(0, prev + 1)
3232
return XDP_PASS
3333
else:
34-
count().update(0, 1)
34+
count.update(0, 1)
3535

3636
return XDP_PASS
3737

0 commit comments

Comments
 (0)