Skip to content

Commit

Permalink
only setDBClientSettings if filter != nil
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach committed Jan 1, 2025
1 parent b3e9fdc commit 79d07b3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ func newParallelWorkersPool(size int, dbClientGen dbClientGenerator, vp *vplayer
if err != nil {
return nil, err
}
if err := setDBClientSettings(dbClient, vp.vr.workflowConfig); err != nil {
return nil, err
if vp.vr.source.Filter != nil {
if err := setDBClientSettings(dbClient, vp.vr.workflowConfig); err != nil {
return nil, err
}
}

w.dbClient = newVDBClient(dbClient, vp.vr.stats, 0)
Expand Down

0 comments on commit 79d07b3

Please sign in to comment.