Skip to content

[TIME-TRAVEL] [REFACTOR] Decouple SnapshotRegistry from the main simulation loop #1026

@dotandev

Description

@dotandev

Description

Currently, snapshot storage is tightly coupled with the Client logic. This makes testing difficult.

Requirements

  • Use a Cleaner dependency injection pattern for Registry.
  • Pass the registry as an optional argument to the simulation runner.
  • Refactor internal/rpc/client.go to remove snapshot-specific state.

Acceptance Criteria

  • Code is more modular and easier to unit test.
  • Zero functional regressions.

Estimated File Changes: 3 (internal/rpc/client.go, internal/rpc/simulation.go, internal/rpc/options.go)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions