Skip to content

Commit

Permalink
refactor(helper): rename some parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
d4x1 committed Nov 23, 2023
1 parent 155e1bd commit 99b7372
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/helpers/pluginhelper/api/ds_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,16 @@ func NewDataSourceHelper[
basicRes context.BasicRes,
pluginName string,
scopeSearchColumns []string,
connectionCleanUp func(c C) C,
scopeCleanUp func(s S) S,
scopeConfigCleanUp func(s SC) SC,
connectionSterilizer func(c C) C,
scopeSterilizer func(s S) S,
scopeConfigSterilizer func(s SC) SC,
) *DsHelper[C, S, SC] {
connSrv := srvhelper.NewConnectionSrvHelper[C, S, SC](basicRes, pluginName)
connApi := NewDsConnectionApiHelper[C, S, SC](basicRes, connSrv, connectionCleanUp)
connApi := NewDsConnectionApiHelper[C, S, SC](basicRes, connSrv, connectionSterilizer)
scopeSrv := srvhelper.NewScopeSrvHelper[C, S, SC](basicRes, pluginName, scopeSearchColumns)
scopeApi := NewDsScopeApiHelper[C, S, SC](basicRes, scopeSrv, scopeCleanUp)
scopeApi := NewDsScopeApiHelper[C, S, SC](basicRes, scopeSrv, scopeSterilizer)
scSrv := srvhelper.NewScopeConfigSrvHelper[C, S, SC](basicRes, scopeSearchColumns)
scApi := NewDsScopeConfigApiHelper[C, S, SC](basicRes, scSrv, scopeConfigCleanUp)
scApi := NewDsScopeConfigApiHelper[C, S, SC](basicRes, scSrv, scopeConfigSterilizer)
return &DsHelper[C, S, SC]{
ConnSrv: connSrv,
ConnApi: connApi,
Expand Down

0 comments on commit 99b7372

Please sign in to comment.