Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor fix to BEP key encoding
Browse files Browse the repository at this point in the history
LifetimeEvents and BuildEvents were racing to who would get the
entry first. This partitions the data.
allada committed Dec 13, 2024
1 parent 3f3d4e2 commit 7b11923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nativelink-service/src/bep_server.rs
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ impl BepServer {
let sequence_number = build_event.sequence_number;

let store_key = StoreKey::Str(Cow::Owned(format!(
"BepEvent:{}:{}:{}",
"BepEvent:le:{}:{}:{}",
&stream_id.build_id, &stream_id.invocation_id, sequence_number,
)));

@@ -140,7 +140,7 @@ impl BepServer {
store
.update_oneshot(
StoreKey::Str(Cow::Owned(format!(
"BepEvent:{}:{}:{}",
"BepEvent:be:{}:{}:{}",
&stream_id.build_id, &stream_id.invocation_id, sequence_number,
))),
buf.freeze(),

0 comments on commit 7b11923

Please sign in to comment.