Skip to content

Commit

Permalink
refactor: rename the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Luthfi Fahlevi committed Sep 2, 2024
1 parent 7b5b0c1 commit d4b7f54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/asset/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Service struct {
lineageRepository LineageRepository
worker Worker
logger log.Logger
assetConfig Config
config Config
cancelFnList []func()

assetOpCounter metric.Int64Counter
Expand Down Expand Up @@ -57,7 +57,7 @@ func NewService(deps ServiceDeps) (service *Service, cancel func()) {
lineageRepository: deps.LineageRepo,
worker: deps.Worker,
logger: deps.Logger,
assetConfig: deps.AssetConfig,
config: deps.AssetConfig,
cancelFnList: make([]func(), 0),

assetOpCounter: assetOpCounter,
Expand Down Expand Up @@ -153,7 +153,7 @@ func (s *Service) DeleteAssets(ctx context.Context, request DeleteAssetsRequest)
}

if !request.DryRun && total > 0 {
newCtx, cancel := context.WithTimeout(context.Background(), s.assetConfig.DeleteAssetsTimeout)
newCtx, cancel := context.WithTimeout(context.Background(), s.config.DeleteAssetsTimeout)
s.cancelFnList = append(s.cancelFnList, cancel)
go s.executeDeleteAssets(newCtx, deleteSQLExpr)
}
Expand Down

0 comments on commit d4b7f54

Please sign in to comment.