Skip to content

Commit

Permalink
Fix setting message count for metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
kysre committed Feb 11, 2024
1 parent 5ac0a2d commit a4382db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datanode/src/datanode_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def wrapper(*args, **kwargs):
def set_message_count(func):
def wrapper(*args, **kwargs):
result = func(*args, **kwargs)
message_count.set(result)
message_count.set(result.remaining_messages_count)
return result
return wrapper

Expand Down

0 comments on commit a4382db

Please sign in to comment.