Collection.FindOne option MaxTime not working

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.4.3
    • Affects Version/s: 1.4.0
    • Component/s: Command & Dispatch
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I tried to set a time limit for each mongo operation.
      I create a option instance using function `options.FindOne().SetMaxTime()` and pass it to Collection.FindOne(). Somehow, it doesn't seem to work.
      So I dig deeper into source code and found out that in `collection.go`
      `opt.MaxTime` is not assigned to `findOpt`

            Assignee:
            Isabella Siu (Inactive)
            Reporter:
            煜廷 許
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: