Max Inden

Results 899 comments of Max Inden

### Type Safety > Realistically, I think type-safety would not suffer much. I'd claim it is equally easy to mix up what to put in `InboundUpgrade` & `OutboundUpgrade` vs `inject_fully_negotiated_inbound`...

> > * For incoming substreams, we thus pass the actual substream all the way to the behaviour and end up polling the future there. > > As an aside,...

> * Wraps the future in a timeout > > * Never returns `None` (i.e. hides this in the type interface) If I may add a wish, first class bounding...

I would be in favor of that. I should have thought of it before. @nox would you like to write a first proposal? Before you go all the way, I...

If I understand you correctly https://github.com/prometheus/client_rust/pull/82 adds what you are looking for.

> Am I understanding correctly that the user of the lib is expected to reimplement the `Collector` trait such that calling `collect()` will do whatever is necessary to produce the...

Also note that the `encode` function takes an immutable reference to a `Registry`, thus two Prometheus servers (e.g. for fault tolerance) may scrape the same endpoint concurrently.