Skip to content

Commit 6ce3ddc

Browse files
committedAug 4, 2023
refactor: package rename
1 parent 07e59c7 commit 6ce3ddc

9 files changed

+10
-10
lines changed
 

‎actions.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
// 用于统计Storage上的方法调用行为
44
const (

‎errors.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import "errors"
44

‎lease_refresh_goroutine.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"context"
@@ -138,7 +138,7 @@ func (x *LeaseRefreshGoroutine) refreshLeaseExpiredTime(ctx context.Context) err
138138

139139
information.LeaseExpireTime = expireTime
140140

141-
updateAction := events.NewAction(events.ActionStorageUpdateWithVersion)
141+
updateAction := events.NewAction(ActionStorageUpdateWithVersion)
142142
err = x.storageLock.storage.UpdateWithVersion(ctx, x.storageLock.options.LockId, lastVersion, information.Version, information)
143143
e.Fork().AppendAction(updateAction.End().SetErr(err)).SetLockInformation(information).Publish(ctx)
144144

‎owner_id_generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"fmt"

‎storage_lock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"context"

‎storage_lock_options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"github.com/storage-lock/go-events"

‎test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"context"

‎time_provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"context"

‎time_provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package go_storage_lock
1+
package storage_lock
22

33
import (
44
"context"

0 commit comments

Comments
 (0)
Please sign in to comment.