Skip to content

Commit

Permalink
fix source of deadlock
Browse files Browse the repository at this point in the history
  • Loading branch information
aditsachde committed Sep 27, 2024
1 parent 5b2ab5a commit 12fa45d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/ctsubmit/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ func (d *stageZeroData) stageZero(ctx context.Context, reqBody io.ReadCloser, pr
// Otherwise, we need to send it to the sequencer

// Send the unsequenced entry to the first stage
returnPath := make(chan sunlight.LogEntry)
// This channel is buffered so it doesn't block if an attempt is made to send
// after the timeout fires.
returnPath := make(chan sunlight.LogEntry, 1)
d.stageOneTx <- UnsequencedEntryWithReturnPath{entry, returnPath}

// If we recieve something here, that means that the entry has been both sequenced
Expand Down

0 comments on commit 12fa45d

Please sign in to comment.