Skip to content

Commit e8e113b

Browse files
authored
Tidying flock copy (#11)
1 parent 27777de commit e8e113b

File tree

8 files changed

+51
-413
lines changed

8 files changed

+51
-413
lines changed

extensions/internal/flock/.gitignore

Lines changed: 0 additions & 24 deletions
This file was deleted.

extensions/internal/flock/flock.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ func (f *Flock) Close() error {
5656
return f.Unlock()
5757
}
5858

59+
// Fh returns the lock file
60+
func (f *Flock) Fh() *os.File {
61+
return f.fh
62+
}
63+
5964
// Path returns the path as provided in NewFlock().
6065
func (f *Flock) Path() string {
6166
return f.path

extensions/internal/flock/flock_aix.go

Lines changed: 0 additions & 281 deletions
This file was deleted.

extensions/internal/flock/flock_example_test.go

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)