Skip to content

Commit

Permalink
perf: removed unused completions in miner's response to optimize netw…
Browse files Browse the repository at this point in the history
…ork traffic
  • Loading branch information
codebender37 committed Nov 22, 2024
1 parent 91792f6 commit e76ce98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions neurons/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ async def forward_feedback_request(
assert len(task_ids) == 1
synapse.dojo_task_id = task_ids[0]

# Clear completion field in completion_responses to optimize network traffic
for completion_response in synapse.completion_responses:
completion_response.completion = None

except Exception:
traceback.print_exc()
logger.error(
Expand Down

0 comments on commit e76ce98

Please sign in to comment.