mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 00:01:24 +01:00
Make tracing filter reload handles mutable
Makes the following diff nicer.
This commit is contained in:
parent
4cc390345a
commit
5eab758bd2
3 changed files with 9 additions and 7 deletions
|
|
@ -79,7 +79,8 @@ impl<L, S> ReloadHandle<L> for reload::Handle<L, S> {
|
|||
}
|
||||
|
||||
/// A type-erased [reload handle][reload::Handle] for an [`EnvFilter`].
|
||||
pub(crate) type FilterReloadHandle = Box<dyn ReloadHandle<EnvFilter> + Sync>;
|
||||
pub(crate) type FilterReloadHandle =
|
||||
Box<dyn ReloadHandle<EnvFilter> + Send + Sync>;
|
||||
|
||||
/// Collection of [`FilterReloadHandle`]s, allowing the filters for tracing
|
||||
/// backends to be changed dynamically. Handles may be [`None`] if the backend
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue