Skip to content

Commit 2fd7fe2

Browse files
daschwandencoperni
andauthored
Update fleetspeak/src/server/spanner/broadcaststore.go
Co-authored-by: coperni <[email protected]>
1 parent 06e6ee5 commit 2fd7fe2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fleetspeak/src/server/spanner/broadcaststore.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,5 @@ func (d *Datastore) tryCleanupAllocation(ctx context.Context, txn *spanner.ReadW
284284
broadcastCols := []string{"BroadcastID", "Allocated", "Sent"}
285285
ms := []*spanner.Mutation{spanner.Update(d.broadcasts, broadcastCols, []interface{}{bid.Bytes(), int64(newAllocated), bSent + baSent})}
286286
ms = append(ms, spanner.Delete(d.broadcastAllocations, spanner.Key{bid.Bytes(), aid.Bytes()}))
287-
txn.BufferWrite(ms)
288-
289-
return nil
287+
return txn.BufferWrite(ms)
290288
}

0 commit comments

Comments
 (0)