Skip to content

Commit 2fe1563

Browse files
author
Steve Ramage
committed
Additional PR Fixes #647
1 parent fa52996 commit 2fe1563

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CONTRIBUTING.md

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
1. Write awesome code ...
1212
1. `make test` to run all tests against all database versions
1313
1. Push code and open Pull Request
14-
:wq
1514
Some more helpful commands:
1615

1716
* You can specify which database/ source tests to run:

database/mongodb/mongodb.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const contextWaitTimeout = 5 * time.Second // how long to wait for
3737

3838
var (
3939
ErrNoDatabaseName = fmt.Errorf("no database name")
40-
ErrNilConfig = fmt.Errorf("no config")
41-
ErrTypoAndNotNonTypoUsed = fmt.Errorf("both x-advisory-lock-timeout-interval and x-advisory-lock-timout-interval were specified")
40+
ErrNilConfig = fmt.Errorf("no config")
41+
ErrLockTimeoutConfigConflict = fmt.Errorf("both x-advisory-lock-timeout-interval and x-advisory-lock-timout-interval were specified")
4242
)
4343

4444
type Mongo struct {
@@ -147,7 +147,7 @@ func (m *Mongo) Open(dsn string) (database.Driver, error) {
147147
lockTimeout := lockTimeoutIntervalValue
148148

149149
if lockTimeoutIntervalValue != "" && lockTimeoutIntervalValueFromTypo != "" {
150-
return nil, ErrTypoAndNotNonTypoUsed
150+
return nil, ErrLockTimeoutConfigConflict
151151
} else if lockTimeoutIntervalValueFromTypo != "" {
152152
lockTimeout = lockTimeoutIntervalValueFromTypo
153153
}

0 commit comments

Comments
 (0)