Skip to content

Commit

Permalink
Fixup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Jun 19, 2024
1 parent d636f55 commit 086673d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/target/kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
"github.com/pkg/errors"
log "github.com/sirupsen/logrus"

"github.com/snowplow/snowbridge/pkg/batchtransform"
"github.com/snowplow/snowbridge/pkg/common"
"github.com/snowplow/snowbridge/pkg/models"
"github.com/snowplow/snowbridge/pkg/target/targetiface"
batchtransform "github.com/snowplow/snowbridge/pkg/transform/batch"
)

const (
Expand Down Expand Up @@ -131,7 +131,7 @@ func (kt *KinesisTarget) Write(messages []*models.Message) (*models.TargetWriteR
kt.TargetStruct.AppendBatchTransforms = []batchtransform.BatchTransformationFunction{
chunkBatcherWithConfig(kt.requestMaxMessages, kt.MaximumAllowedMessageSizeBytes(), kinesisPutRecordsRequestByteLimit),
}
kt.TargetStruct.Process = func(batch models.MessageBatch) (*models.TargetWriteResult, error) {
kt.TargetStruct.Process = func(batch *models.MessageBatch) (*models.TargetWriteResult, error) {
return kt.process(batch.OriginalMessages)
}
return kt.TargetStruct.Write(messages)
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/targetiface/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Target interface {
}

// TargetProcessFunc defines the API for each target's implementation to handle sending a batch of data.
type TargetProcessFunc func(models.MessageBatch) (*models.TargetWriteResult, error)
type TargetProcessFunc func(*models.MessageBatch) (*models.TargetWriteResult, error)

// TargetStruct is an experiment
type TargetStruct struct {
Expand Down

0 comments on commit 086673d

Please sign in to comment.