|
31 | 31 | _ Find = (*OptLimit)(nil)
|
32 | 32 | _ Find = (*OptMax)(nil)
|
33 | 33 | _ Find = (*OptMaxAwaitTime)(nil)
|
34 |
| - _ Find = (*OptMaxScan)(nil) |
35 | 34 | _ Find = (*OptMaxTime)(nil)
|
36 | 35 | _ Find = (*OptMin)(nil)
|
37 | 36 | _ Find = (*OptNoCursorTimeout)(nil)
|
|
50 | 49 | _ One = (*OptHint)(nil)
|
51 | 50 | _ One = (*OptMax)(nil)
|
52 | 51 | _ One = (*OptMaxAwaitTime)(nil)
|
53 |
| - _ One = (*OptMaxScan)(nil) |
54 | 52 | _ One = (*OptMaxTime)(nil)
|
55 | 53 | _ One = (*OptMin)(nil)
|
56 | 54 | _ One = (*OptNoCursorTimeout)(nil)
|
@@ -149,12 +147,6 @@ func MaxAwaitTime(d time.Duration) OptMaxAwaitTime {
|
149 | 147 | return OptMaxAwaitTime(d)
|
150 | 148 | }
|
151 | 149 |
|
152 |
| -// MaxScan specifies the maximum number of documents or index keys to scan. |
153 |
| -// Find, One |
154 |
| -func MaxScan(i int64) OptMaxScan { |
155 |
| - return OptMaxScan(i) |
156 |
| -} |
157 |
| - |
158 | 150 | // MaxTime specifies the max time to allow the query to run.
|
159 | 151 | // Find, One, DeleteOne, ReplaceOne, UpdateOne
|
160 | 152 | func MaxTime(d time.Duration) OptMaxTime {
|
@@ -427,22 +419,6 @@ func (opt OptMaxAwaitTime) ConvertFindOneOption() option.FindOptioner {
|
427 | 419 | return option.OptMaxAwaitTime(opt)
|
428 | 420 | }
|
429 | 421 |
|
430 |
| -// OptMaxScan specifies the maximum number of documents or index keys to scan. |
431 |
| -type OptMaxScan option.OptMaxScan |
432 |
| - |
433 |
| -func (OptMaxScan) find() {} |
434 |
| -func (OptMaxScan) one() {} |
435 |
| - |
436 |
| -// ConvertFindOption implements the Find interface. |
437 |
| -func (opt OptMaxScan) ConvertFindOption() option.FindOptioner { |
438 |
| - return option.OptMaxScan(opt) |
439 |
| -} |
440 |
| - |
441 |
| -// ConvertFindOneOption implements the One interface. |
442 |
| -func (opt OptMaxScan) ConvertFindOneOption() option.FindOptioner { |
443 |
| - return option.OptMaxScan(opt) |
444 |
| -} |
445 |
| - |
446 | 422 | // OptMaxTime specifies the max time to allow the query to run.
|
447 | 423 | type OptMaxTime option.OptMaxTime
|
448 | 424 |
|
|
0 commit comments