Skip to content

Remove unfinished get_synthetic_latency placeholder#59

Open
ff225 wants to merge 1 commit into
mainfrom
fix/sciot-050-remove-synthetic-latency-placeholder
Open

Remove unfinished get_synthetic_latency placeholder#59
ff225 wants to merge 1 commit into
mainfrom
fix/sciot-050-remove-synthetic-latency-placeholder

Conversation

@ff225

@ff225 ff225 commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • MessageData.get_synthetic_latency() always returned 1 and was multiplied into get_avg_speed's latency term — a no-op placeholder that was never completed.
  • Removes the method, the synthetic_latency class attribute, and the now-unnecessary parameter from get_avg_speed, updating the one call site in request_handler.py.

Test plan

  • Added tests/unit/test_message_data.py coverage: placeholder attributes are gone, get_avg_speed still computes payload_size / latency and returns 0 on zero latency.
  • uv run pytest tests/unit -k "message_data or request_handler" passes (17 passed, 1 skipped).

Closes #50

get_synthetic_latency() always returned 1 and was only ever multiplied
into get_avg_speed's latency term, making it a no-op. Drop it instead
of finishing the implementation since no intended semantics were
documented anywhere.

Closes #50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead code and unused placeholders (profiler.py, get_synthetic_latency)

1 participant