Skip to content

refactor: using defer m.Unlock in store.go#425

Merged
mangalaman93 merged 2 commits intodgraph-io:mainfrom
hoo47:refactor/lock
Dec 17, 2024
Merged

refactor: using defer m.Unlock in store.go#425
mangalaman93 merged 2 commits intodgraph-io:mainfrom
hoo47:refactor/lock

Conversation

@hoo47
Copy link
Contributor

@hoo47 hoo47 commented Dec 17, 2024

  • AS-IS: calls m.Unlock() before the end of function(method)
  • TO-BE: using defer keyword, automatically calling unlock method right before return statements

@hoo47 hoo47 requested a review from a team December 17, 2024 05:59
@CLAassistant
Copy link

CLAassistant commented Dec 17, 2024

CLA assistant check
All committers have signed the CLA.

@mangalaman93 mangalaman93 enabled auto-merge (squash) December 17, 2024 07:15
@mangalaman93 mangalaman93 merged commit f9e778b into dgraph-io:main Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants