Skip to content

Commit

Permalink
err
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jun 12, 2024
1 parent 1f31f25 commit 4399e99
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions flow/connectors/utils/cdc_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ func (c *CdcStore[T]) Set(logger log.Logger, key model.TableWithPkey, rec model.
if c.pebbleDB == nil {
logger.Info(c.thresholdReason,
slog.String(string(shared.FlowNameKey), c.flowJobName))
err := c.initPebbleDB()
if err != nil {
if err := c.initPebbleDB(); err != nil {
return err
}
}
Expand Down Expand Up @@ -228,8 +227,7 @@ func (c *CdcStore[T]) Get(key model.TableWithPkey) (model.Record[T], bool, error

dec := gob.NewDecoder(bytes.NewReader(encodedRec))
var rec model.Record[T]
err = dec.Decode(&rec)
if err != nil {
if err := dec.Decode(&rec); err != nil {
return nil, false, fmt.Errorf("failed to decode record: %w", err)
}

Expand Down

0 comments on commit 4399e99

Please sign in to comment.