Skip to content

Commit

Permalink
Fix the enclave stream reconnect (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel authored Jan 11, 2024
1 parent f72e986 commit a41bff9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/host/rpc/enclaverpc/enclave_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ func (c *Client) StreamL2Updates() (chan common.StreamL2UpdatesResponse, func())
c.logger.Error("Error opening batch stream.", log.ErrKey, err)
cancel()
close(batchChan)
return nil, nil
// return closed channel and no-op cancel func
return batchChan, func() {}
}

stopIt := func() {
Expand Down

0 comments on commit a41bff9

Please sign in to comment.