CleanUp invokes the underlying solver's CleanUp method and also cleans up any assets saved to storage.
(ctx context.Context, chal acme.Challenge)
| 660 | // CleanUp invokes the underlying solver's CleanUp method |
| 661 | // and also cleans up any assets saved to storage. |
| 662 | func (dhs distributedSolver) CleanUp(ctx context.Context, chal acme.Challenge) error { |
| 663 | err := dhs.storage.Delete(ctx, dhs.challengeTokensKey(challengeKey(chal))) |
| 664 | if err != nil { |
| 665 | return err |
| 666 | } |
| 667 | err = dhs.solver.CleanUp(ctx, chal) |
| 668 | if err != nil { |
| 669 | return fmt.Errorf("cleaning up embedded provider: %v", err) |
| 670 | } |
| 671 | return nil |
| 672 | } |
| 673 | |
| 674 | // challengeTokensPrefix returns the key prefix for challenge info. |
| 675 | func (dhs distributedSolver) challengeTokensPrefix() string { |
nothing calls this directly
no test coverage detected