Skip to content

Commit

Permalink
refactor(backend): uses new streamlined latency.Matrix to add delay
Browse files Browse the repository at this point in the history
This replaces the old multi-map-based location and latencies lookups
that were a bit awkward to work with.

This removes the existing map[string]map[string]time.Duration{}
latencies using the data in the internal/latency package.

The new latency package provides the lm.Latency(a, b) to get the
latency between two hotstuff.IDs.

We now only need to fill the Locations []string in the ReplicaOpts
to pass the set of locations around.
  • Loading branch information
meling committed Dec 20, 2024
1 parent 1bd5c0d commit d27e836
Show file tree
Hide file tree
Showing 9 changed files with 230 additions and 739 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"clang-format.style": "{ IndentWidth: 4, BasedOnStyle: google, AlignConsecutiveAssignments: true, ColumnLimit: 120 }",
"clang-format.style": "{ IndentWidth: 2, BasedOnStyle: google, AlignConsecutiveAssignments: true, ColumnLimit: 120 }",
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"protoc": {
Expand Down
Loading

0 comments on commit d27e836

Please sign in to comment.