File tree 1 file changed +5
-5
lines changed
coderd/database/databasefake 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -54,10 +54,10 @@ type rwMutex interface {
54
54
// inTxMutex is a no op, since inside a transaction we are already locked.
55
55
type inTxMutex struct {}
56
56
57
- func (_ * inTxMutex ) Lock () {}
58
- func (_ * inTxMutex ) RLock () {}
59
- func (_ * inTxMutex ) Unlock () {}
60
- func (_ * inTxMutex ) RUnlock () {}
57
+ func (inTxMutex ) Lock () {}
58
+ func (inTxMutex ) RLock () {}
59
+ func (inTxMutex ) Unlock () {}
60
+ func (inTxMutex ) RUnlock () {}
61
61
62
62
// fakeQuerier replicates database functionality to enable quick testing.
63
63
type fakeQuerier struct {
@@ -96,7 +96,7 @@ type data struct {
96
96
func (q * fakeQuerier ) InTx (fn func (database.Store ) error ) error {
97
97
q .mutex .Lock ()
98
98
defer q .mutex .Unlock ()
99
- return fn (& fakeQuerier {mutex : & inTxMutex {}, data : q .data })
99
+ return fn (& fakeQuerier {mutex : inTxMutex {}, data : q .data })
100
100
}
101
101
102
102
func (q * fakeQuerier ) AcquireProvisionerJob (_ context.Context , arg database.AcquireProvisionerJobParams ) (database.ProvisionerJob , error ) {
You can’t perform that action at this time.
0 commit comments