(ctx context.Context, clientId string, noTelemetryVal bool)
| 255 | } |
| 256 | |
| 257 | func SendNoTelemetryUpdate(ctx context.Context, clientId string, noTelemetryVal bool) error { |
| 258 | req, err := makeAnonPostReq(ctx, NoTelemetryUrl, NoTelemetryInputType{ClientId: clientId, Value: noTelemetryVal}) |
| 259 | if err != nil { |
| 260 | return err |
| 261 | } |
| 262 | _, err = doRequest(req, nil, true) |
| 263 | if err != nil { |
| 264 | return err |
| 265 | } |
| 266 | return nil |
| 267 | } |
| 268 | |
| 269 | func makePingPostReq(ctx context.Context, apiUrl string, data interface{}) (*http.Request, error) { |
| 270 | endpoint := GetPingEndpoint() |
no test coverage detected