Skip to content

Commit

Permalink
[Go] Add SetLockManager (#60)
Browse files Browse the repository at this point in the history
Signed-off-by: sunby <[email protected]>
  • Loading branch information
sunby committed Sep 22, 2023
1 parent 6c10834 commit 0f44a36
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/storage/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ func (b *SpaceOptionsBuilder) SetVersion(version int64) *SpaceOptionsBuilder {
return b
}

func (b *SpaceOptionsBuilder) SetLockHandler(lockHandler lock.LockManager) *SpaceOptionsBuilder {
b.options.LockManager = lockHandler
func (b *SpaceOptionsBuilder) SetLockManager(lockManager lock.LockManager) *SpaceOptionsBuilder {
b.options.LockManager = lockManager
return b
}

Expand Down
4 changes: 4 additions & 0 deletions go/storage/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,7 @@ func (s *Space) Manifest() *manifest.Manifest {
func (s *Space) LockManager() lock.LockManager {
return s.lockManager
}

func (s *Space) SetLockManager(lockManager lock.LockManager) {
s.lockManager = lockManager
}

0 comments on commit 0f44a36

Please sign in to comment.