Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Oct 16, 2023
1 parent c036c5b commit 7c941c9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions flow/connectors/eventhub/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"github.com/PeerDB-io/peer-flow/model"
cmap "github.com/orcaman/concurrent-map/v2"
log "github.com/sirupsen/logrus"
"go.temporal.io/sdk/activity"
)

type EventHubConnector struct {
Expand Down Expand Up @@ -131,8 +130,6 @@ func (c *EventHubConnector) processBatch(
ctx := context.Background()

tableNameRowsMapping := cmap.New[uint32]()
eventsPerHeartBeat := 1000

batchPerTopic := NewHubBatches(c.hubManager)
toJSONOpts := model.NewToJSONOptions(c.config.UnnestColumns)

Expand Down Expand Up @@ -173,10 +170,6 @@ func (c *EventHubConnector) processBatch(
return err
}

if i%eventsPerHeartBeat == 0 {
activity.RecordHeartbeat(ctx, fmt.Sprintf("sent %d records to hub: %s", i, topicName.ToString()))
}

if (i+1)%eventsPerBatch == 0 {
err := flushBatch()
if err != nil {
Expand Down

0 comments on commit 7c941c9

Please sign in to comment.