Skip to content

Commit

Permalink
修正createLockWithOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
CC11001100 committed Aug 30, 2023
1 parent 975b542 commit ef9d99a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/storage-lock/go-storage-lock-factory
go 1.19

require (
github.com/storage-lock/go-storage v0.0.1
github.com/storage-lock/go-storage-lock v0.0.1
github.com/storage-lock/go-storage v0.0.2
github.com/storage-lock/go-storage-lock v0.0.3
)

require (
Expand All @@ -14,11 +14,11 @@ require (
github.com/golang-infrastructure/go-pointer v0.0.5 // indirect
github.com/golang-infrastructure/go-reflect-utils v0.0.0-20221130143747-965ef2eb09c3 // indirect
github.com/golang-infrastructure/go-tuple v0.0.0-20221215155811-4ed54fe7d579 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/kr/text v0.2.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/storage-lock/go-events v0.0.1 // indirect
github.com/storage-lock/go-storage-events v0.0.1 // indirect
github.com/storage-lock/go-events v0.0.3 // indirect
github.com/storage-lock/go-storage-events v0.0.5 // indirect
github.com/storage-lock/go-utils v0.0.2 // indirect
github.com/stretchr/testify v1.8.4 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
Expand Down
10 changes: 10 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ github.com/golang-infrastructure/go-tuple v0.0.0-20221215155811-4ed54fe7d579 h1:
github.com/golang-infrastructure/go-tuple v0.0.0-20221215155811-4ed54fe7d579/go.mod h1:cn8fHK0Sjxh7nSrnNpRa9wi1wIsmBLsjOip4LTjQz+Q=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.3.1 h1:KjJaJ9iWZ3jOFZIf1Lqf4laDRCasjl0BCmnEGxkdLb4=
github.com/google/uuid v1.3.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
Expand All @@ -21,12 +23,20 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
github.com/storage-lock/go-events v0.0.1 h1:8abGhlhmJGzn8Pq/LjAbPfAyGs70ZNjwoc7/OITMmUg=
github.com/storage-lock/go-events v0.0.1/go.mod h1:DKwPgfuq8T8CyPLipH+0XHsNt8hEN4g9krUGfosU2oY=
github.com/storage-lock/go-events v0.0.3 h1:QuNbaREe5m1WYC0meKs7SRJ5lY11a18jCJJS/mGD3SA=
github.com/storage-lock/go-events v0.0.3/go.mod h1:DKwPgfuq8T8CyPLipH+0XHsNt8hEN4g9krUGfosU2oY=
github.com/storage-lock/go-storage v0.0.1 h1:BmIoykW2elNnw5EircFroo353YoIudLXO6LhOuk3xYs=
github.com/storage-lock/go-storage v0.0.1/go.mod h1:tfqgPpnU+NQrcor2WQL4XIbhux4vfue9XzT9ETTd5Ig=
github.com/storage-lock/go-storage v0.0.2 h1:N5glUlrr1bbJ8ixYsPmOv+TuhIOObX/65+hrNMPWFDc=
github.com/storage-lock/go-storage v0.0.2/go.mod h1:4vuU2nLdbmzj2UIBKpwB5lj8RI+GnPDZ4YHZ7QAcFHE=
github.com/storage-lock/go-storage-events v0.0.1 h1:NIwf0u8HEzY6Azw2wukvMQLglN5r4xPS/AcjUJiZ1qc=
github.com/storage-lock/go-storage-events v0.0.1/go.mod h1:Ph6p2Nbi5VuB0aGRRIBNkn5G3xvSyhZIEqhRf3gc12Y=
github.com/storage-lock/go-storage-events v0.0.5 h1:qUgB/VZIQNM0PIos67T9D1JIqu3Yiu3+YDpuHEal3FI=
github.com/storage-lock/go-storage-events v0.0.5/go.mod h1:aBMVsOSr61+BLxO3QnU5FwKd5bdMGE4IpV0oDrAg8uQ=
github.com/storage-lock/go-storage-lock v0.0.1 h1:60lvEHQkSqbn0kJY930ZyaygHRz8aIbxHWNSST32ctg=
github.com/storage-lock/go-storage-lock v0.0.1/go.mod h1:SVAbvdYubsZHm8/MgPHKjsHuKLSERB00+clT/QLzoMM=
github.com/storage-lock/go-storage-lock v0.0.3 h1:eobL73fhfAjLKNk4msQNTYFcilrPKwySXY/5ympfeRU=
github.com/storage-lock/go-storage-lock v0.0.3/go.mod h1:kzyjFhgPmiYMwLuuVoQfYxXPUOIGNETA+Z/wDnRc/iw=
github.com/storage-lock/go-utils v0.0.2 h1:pdacTOlD+AHqwWVmDqZLcjKF+7p8TjsmlvZ9bmmkIfE=
github.com/storage-lock/go-utils v0.0.2/go.mod h1:tx8ATHL7yOC0Nyjpba7hJNk0+QNt2XEnMr8NcGm9Gak=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
Expand Down
2 changes: 1 addition & 1 deletion storage_lock_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (x *StorageLockFactory[Connection]) CreateLock(lockId string) (*storage_loc
return storage_lock.NewStorageLock(x.Storage, lockId)
}

func (x *StorageLockFactory[Connection]) CreateLockWithOptions(lockId string, options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error) {
func (x *StorageLockFactory[Connection]) CreateLockWithOptions(options *storage_lock.StorageLockOptions) (*storage_lock.StorageLock, error) {
return storage_lock.NewStorageLockWithOptions(x.Storage, options)
}

Expand Down

0 comments on commit ef9d99a

Please sign in to comment.