Skip to content

Commit

Permalink
Merge pull request #4792 from systeminit/jkeiser/correct-snapshot-add…
Browse files Browse the repository at this point in the history
…ress

Report new snapshot address (not old) in billing event
  • Loading branch information
stack72 authored Oct 14, 2024
2 parents 49cd674 + a1f2ffb commit 8d05e31
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/dal/src/change_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,6 @@ impl ChangeSet {
ctx: &DalContext,
workspace_snapshot_address: WorkspaceSnapshotAddress,
) -> ChangeSetResult<()> {
billing_publish::for_head_change_set_pointer_update(ctx, self)
.await
.map_err(Box::new)?;

ctx.txns()
.await?
.pg()
Expand All @@ -312,6 +308,10 @@ impl ChangeSet {

self.workspace_snapshot_address = workspace_snapshot_address;

billing_publish::for_head_change_set_pointer_update(ctx, self)
.await
.map_err(Box::new)?;

Ok(())
}

Expand Down

0 comments on commit 8d05e31

Please sign in to comment.