Skip to content

Commit

Permalink
[Security] Refactor gitMutex key naming in chaoscenter/graphql/server…
Browse files Browse the repository at this point in the history
…/pkg/gitops/git-lock.go (#4810)

* fix: gitMutex key naming in chaoscenter/graphql/server/pkg/gitops/git-lock.go

Signed-off-by: ParkChangSun <[email protected]>

* fix: log key in chaoscenter/graphql/server/pkg/gitops/git-lock.go

Signed-off-by: ParkChangSun <[email protected]>

* fix: log key in chaoscenter/graphql/server/pkg/gitops/git-lock.go

Signed-off-by: ParkChangSun <[email protected]>

---------

Signed-off-by: ParkChangSun <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
Co-authored-by: Amit Kumar Das <[email protected]>
  • Loading branch information
3 people committed Aug 9, 2024
1 parent 420d207 commit 69cdfc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chaoscenter/graphql/server/pkg/gitops/git-lock.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (g *GitMutexLock) Lock(repo string, branch *string) {
g.mapMutex.Unlock()

temp.Lock()
log.Info("acquired LOCK : ", key)
log.Info("acquired LOCK")
}

// Unlock releases the lock on particular project or repo
Expand All @@ -39,7 +39,7 @@ func (g *GitMutexLock) Unlock(repo string, branch *string) {
temp := g.gitMutex[key]
g.mapMutex.Unlock()
temp.Unlock()
log.Info("release LOCK : ", key)
log.Info("release LOCK")
}

// NewGitLock returns a instance of GitMutexLock
Expand Down

0 comments on commit 69cdfc5

Please sign in to comment.