Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Additional PR Fixes #647
  • Loading branch information
Steve Ramage committed Nov 5, 2021
commit 2fe1563b8c2cab07e80d0e1739f6d5db809a6ecd
1 change: 0 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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