From 99b7372f018cebb286aecbfc37bb3c92bbad5ef3 Mon Sep 17 00:00:00 2001 From: Lynwee Hou Date: Thu, 23 Nov 2023 18:26:16 +0800 Subject: [PATCH] refactor(helper): rename some parameters --- backend/helpers/pluginhelper/api/ds_helper.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/helpers/pluginhelper/api/ds_helper.go b/backend/helpers/pluginhelper/api/ds_helper.go index 7a9fca980b8..e4e823a86c2 100644 --- a/backend/helpers/pluginhelper/api/ds_helper.go +++ b/backend/helpers/pluginhelper/api/ds_helper.go @@ -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,