perf: parallelize token source price requests #20

Merged
thuanle merged 2 commits from feat/parallel-price-lookup-v2 into feat/token-message-rich 2026-04-26 19:15:53 +07:00
Owner

Summary

  • run alpha/futures/spot lookup paths concurrently in collectRichTokenData
  • keep source decisions independent and output shape unchanged
  • add concurrency-focused test that fails under sequential execution

Test Plan

  • go test ./internal/services/tele/commands -run RunsLookupsConcurrently -v -count=1
  • go test ./internal/services/tele/commands -v -count=1
  • go test ./... -count=1
## Summary - run alpha/futures/spot lookup paths concurrently in collectRichTokenData - keep source decisions independent and output shape unchanged - add concurrency-focused test that fails under sequential execution ## Test Plan - [x] go test ./internal/services/tele/commands -run RunsLookupsConcurrently -v -count=1 - [x] go test ./internal/services/tele/commands -v -count=1 - [x] go test ./... -count=1
thuanle added 1 commit 2026-04-26 18:31:09 +07:00
Fetch alpha, futures, and spot sources concurrently in token lookup flow to reduce end-to-end response latency while preserving independent source behavior.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
thuanle added 1 commit 2026-04-26 19:00:47 +07:00
Author
Owner

[codex] review results for PR #20.

PASS

No blocking issues found in the latest update.

Validation:

  • go test ./internal/services/tele/commands -run RunsLookupsConcurrently -v -count=1
  • go test ./internal/services/tele/commands -v -count=1
  • go test ./... -count=1
  • go test -race ./internal/services/tele/commands -run CollectRichTokenData -count=1
[codex] review results for PR #20. PASS No blocking issues found in the latest update. Validation: - `go test ./internal/services/tele/commands -run RunsLookupsConcurrently -v -count=1` - `go test ./internal/services/tele/commands -v -count=1` - `go test ./... -count=1` - `go test -race ./internal/services/tele/commands -run CollectRichTokenData -count=1`
thuanle merged commit 391169761a into feat/token-message-rich 2026-04-26 19:15:53 +07:00
thuanle deleted branch feat/parallel-price-lookup-v2 2026-04-26 19:15:57 +07:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: public/crypto-price-bot#20