Skip to content

Commit

Permalink
replace sql.RawBytes with []byte
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 20, 2024
1 parent d306fd7 commit 89e2008
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flow/activities/flowable.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"time"

"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgxpool"
"go.temporal.io/sdk/activity"
"golang.org/x/sync/errgroup"
Expand Down Expand Up @@ -716,9 +715,9 @@ func (a *FlowableActivity) getPostgresPeerConfigs(ctx context.Context) ([]*proto
return nil, err
}

var peerName pgtype.Text
var peerOptions sql.RawBytes
return pgx.CollectRows(optionRows, func(row pgx.CollectableRow) (*protos.Peer, error) {
var peerName string
var peerOptions []byte
err := optionRows.Scan(&peerName, &peerOptions)
if err != nil {
return nil, err
Expand All @@ -729,7 +728,7 @@ func (a *FlowableActivity) getPostgresPeerConfigs(ctx context.Context) ([]*proto
return nil, unmarshalErr
}
return &protos.Peer{
Name: peerName.String,
Name: peerName,
Type: protos.DBType_POSTGRES,
Config: &protos.Peer_PostgresConfig{PostgresConfig: &pgPeerConfig},
}, nil
Expand Down

0 comments on commit 89e2008

Please sign in to comment.