()
| 510 | } |
| 511 | |
| 512 | func (c *Client) Stats() Stats { |
| 513 | c.statsMutex.Lock() |
| 514 | defer c.statsMutex.Unlock() |
| 515 | return c.stats // copy |
| 516 | } |
| 517 | |
| 518 | // ErrNoSearchRoot is returned by SearchRoot if the server doesn't support search. |
| 519 | var ErrNoSearchRoot = errors.New("client: server doesn't support search") |