Skip to content

Builder timeout should be in milliseconds #2460

Closed
@gayathma3

Description

@gayathma3

Description:

In src/Query/Builder.php line number 158, the time-out value should be in milliseconds but it's defined as seconds.

  /**
     * Set the cursor timeout in seconds.
     * @param int $seconds
     * @return $this
     */
    public function timeout($seconds)
    {
        // $this->timeout = $seconds; 
          $this->timeout = $seconds * 1000; // because on line 383, it's $options['maxTimeMS'] = $this->timeout;

        return $this;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions