NLnetLabs / domain

A DNS library for Rust.

Home Page:https://nlnetlabs.nl/projects/domain/about/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the stub resolver shareable.

partim opened this issue · comments

Currently, the Resolver trait is only implemented on &StubResolver to bind the future to the information in the resolver. This should be changed and this information be stored behind an arc so you can share the stub resolver for multiple calls. Maybe this should be made explicit by impl Resolver for Arc<StubResolver>.