Actix-web's Data<T> extractor expects T to implement Clone, so PrometheusHandle (which is Clone) does not need to be wrapped in Arc. The Arc type mismatch caused /metrics to return 500. |
||
|---|---|---|
| .. | ||
| adminrpc | ||
| app | ||
| git-hook | ||
| gitserver | ||
| migrate | ||
| operator | ||
| static | ||
Actix-web's Data<T> extractor expects T to implement Clone, so PrometheusHandle (which is Clone) does not need to be wrapped in Arc. The Arc type mismatch caused /metrics to return 500. |
||
|---|---|---|
| .. | ||
| adminrpc | ||
| app | ||
| git-hook | ||
| gitserver | ||
| migrate | ||
| operator | ||
| static | ||