Skip to content

Commit

Permalink
Additional PR Fixes #647
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Ramage committed Nov 5, 2021
1 parent fa52996 commit 2fe1563
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Expand Up @@ -11,7 +11,6 @@
1. Write awesome code ...
1. `make test` to run all tests against all database versions
1. Push code and open Pull Request
:wq
Some more helpful commands:

* You can specify which database/ source tests to run:
Expand Down
6 changes: 3 additions & 3 deletions database/mongodb/mongodb.go
Expand Up @@ -37,8 +37,8 @@ const contextWaitTimeout = 5 * time.Second // how long to wait for

var (
ErrNoDatabaseName = fmt.Errorf("no database name")
ErrNilConfig = fmt.Errorf("no config")
ErrTypoAndNotNonTypoUsed = fmt.Errorf("both x-advisory-lock-timeout-interval and x-advisory-lock-timout-interval were specified")
ErrNilConfig = fmt.Errorf("no config")
ErrLockTimeoutConfigConflict = fmt.Errorf("both x-advisory-lock-timeout-interval and x-advisory-lock-timout-interval were specified")
)

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

if lockTimeoutIntervalValue != "" && lockTimeoutIntervalValueFromTypo != "" {
return nil, ErrTypoAndNotNonTypoUsed
return nil, ErrLockTimeoutConfigConflict
} else if lockTimeoutIntervalValueFromTypo != "" {
lockTimeout = lockTimeoutIntervalValueFromTypo
}
Expand Down

0 comments on commit 2fe1563

Please sign in to comment.