Skip to content

Commit

Permalink
small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Jan 11, 2024
1 parent 7741945 commit 71f346d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions flow/connectors/eventhub/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,9 @@ func (c *EventHubConnector) processBatch(
}

func (c *EventHubConnector) SyncRecords(req *model.SyncRecordsRequest) (*model.SyncResponse, error) {
var err error
batch := req.Records
var numRecords uint32

numRecords, err = c.processBatch(req.FlowJobName, batch)
numRecords, err := c.processBatch(req.FlowJobName, batch)
if err != nil {
c.logger.Error("failed to process batch", slog.Any("error", err))
return nil, err
Expand Down

0 comments on commit 71f346d

Please sign in to comment.