Skip to content

Commit

Permalink
fix filter layer
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Sep 13, 2019
1 parent 739f740 commit 6d01a6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tracing-subscriber/src/filter/env/mod.rs
Expand Up @@ -14,9 +14,9 @@ mod field;
use crate::{
filter::LevelFilter,
layer::{Context, Layer},
sync::RwLock,
thread,
};
use crossbeam_utils::sync::ShardedLock;
use std::{collections::HashMap, env, error::Error, fmt, str::FromStr};
use tracing_core::{
callsite,
Expand Down Expand Up @@ -44,8 +44,8 @@ pub struct EnvFilter {
statics: directive::Statics,
dynamics: directive::Dynamics,

by_id: ShardedLock<HashMap<span::Id, directive::SpanMatcher>>,
by_cs: ShardedLock<HashMap<callsite::Identifier, directive::CallsiteMatcher>>,
by_id: RwLock<HashMap<span::Id, directive::SpanMatcher>>,
by_cs: RwLock<HashMap<callsite::Identifier, directive::CallsiteMatcher>>,
}

type FieldMap<T> = HashMap<Field, T>;
Expand Down

0 comments on commit 6d01a6c

Please sign in to comment.