@@ -319,7 +319,7 @@ func (a *FlowableActivity) SyncFlow(
319319 return a .Alerter .LogFlowError (ctx , config .FlowJobName , err )
320320 }
321321
322- if err := srcConn .SetupReplConn (ctx ); err != nil {
322+ if err := srcConn .SetupReplConn (ctx , config . Env ); err != nil {
323323 srcClose (ctx )
324324 return a .Alerter .LogFlowError (ctx , config .FlowJobName , err )
325325 }
@@ -612,7 +612,7 @@ func (a *FlowableActivity) ReplicateQRepPartitions(ctx context.Context,
612612 }
613613
614614 return func (partition * protos.QRepPartition ) error {
615- stream := model .NewQRecordStream (shared .FetchAndChannelSize )
615+ stream := model .NewQRecordStream (shared .QRepChannelSize )
616616 outstream := stream
617617
618618 if luaScript != nil {
@@ -641,7 +641,7 @@ func (a *FlowableActivity) ReplicateQRepPartitions(ctx context.Context,
641641 }
642642
643643 return func (partition * protos.QRepPartition ) error {
644- stream := model .NewQObjectStream (shared .FetchAndChannelSize )
644+ stream := model .NewQObjectStream (shared .QRepChannelSize )
645645
646646 return replicateQRepPartition (ctx , a , srcConn , destConn , dstPeer .Type , config , partition , runUUID , stream , stream ,
647647 connectors .QRepPullObjectsConnector .PullQRepObjects ,
@@ -1534,7 +1534,7 @@ func (a *FlowableActivity) ReplicateXminPartition(ctx context.Context,
15341534
15351535 switch config .System {
15361536 case protos .TypeSystem_Q :
1537- stream := model .NewQRecordStream (shared .FetchAndChannelSize )
1537+ stream := model .NewQRecordStream (shared .QRepChannelSize )
15381538 return replicateXminPartition (ctx , a , config , partition , runUUID ,
15391539 stream , stream ,
15401540 (* connpostgres .PostgresConnector ).PullXminRecordStream ,
0 commit comments