()
| 1647 | } |
| 1648 | |
| 1649 | func (h *handler) handleSGCollectCancel() error { |
| 1650 | err := h.server.SGCollect.Stop() |
| 1651 | if err != nil { |
| 1652 | return base.HTTPErrorf(http.StatusBadRequest, "Error stopping sgcollect_info: %v", err) |
| 1653 | } |
| 1654 | |
| 1655 | h.writeRawJSONStatus(http.StatusOK, []byte(`{"status":"cancelled"}`)) |
| 1656 | |
| 1657 | base.Audit(h.ctx(), base.AuditIDSyncGatewayCollectInfoStop, nil) |
| 1658 | return nil |
| 1659 | } |
| 1660 | |
| 1661 | func (h *handler) handleSGCollect() error { |
| 1662 | body, err := h.readBody() |
nothing calls this directly
no test coverage detected