(ctx context.Context)
| 360 | } |
| 361 | |
| 362 | func (c *CacheManager) wipeData(ctx context.Context) error { |
| 363 | if _, err := c.cfClient.RemoveData(ctx, target.WipeData()); err != nil { |
| 364 | return err |
| 365 | } |
| 366 | |
| 367 | // reset sync cache before sending the metric |
| 368 | c.syncMetricsCache.ResetCache() |
| 369 | c.syncMetricsCache.ReportSync() |
| 370 | |
| 371 | return nil |
| 372 | } |
| 373 | |
| 374 | func (c *CacheManager) ReportSyncMetrics() { |
| 375 | c.syncMetricsCache.ReportSync() |
no test coverage detected