Skip to content

Commit

Permalink
Rm palaver (#254)
Browse files Browse the repository at this point in the history
* Remove palaver
  • Loading branch information
estk authored Apr 22, 2022
1 parent 30ef3a3 commit 9c3318e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ delete_roller = []
fixed_window_roller = []
size_trigger = []
json_encoder = ["serde", "serde_json", "chrono", "log-mdc", "log/serde", "thread-id"]
pattern_encoder = ["chrono", "log-mdc", "thread-id", "palaver"]
pattern_encoder = ["chrono", "log-mdc", "thread-id"]
ansi_writer = []
console_writer = ["ansi_writer", "libc", "winapi"]
simple_writer = []
Expand Down Expand Up @@ -62,7 +62,6 @@ log-mdc = { version = "0.1", optional = true }
serde = { version = "1.0", optional = true, features = ["derive"] }
serde-value = { version = "0.7", optional = true }
thread-id = { version = "4", optional = true }
palaver = { version = "0.2", optional = true }
typemap = { version = "0.3", optional = true }
serde_json = { version = "1.0", optional = true }
serde_yaml = { version = "0.8.4", optional = true }
Expand Down
4 changes: 2 additions & 2 deletions src/encode/pattern/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ mod parser;

thread_local!(
/// Thread-locally cached thread ID.
static TID: u64 = palaver::thread::gettid()
static TID: usize = thread_id::get()
);

/// The pattern encoder's configuration.
Expand Down Expand Up @@ -806,7 +806,7 @@ mod tests {
pw.encode(&mut SimpleWriter(&mut buf), &Record::builder().build())
.unwrap();

assert_eq!(buf, palaver::thread::gettid().to_string().as_bytes());
assert_eq!(buf, thread_id::get().to_string().as_bytes());
}

#[test]
Expand Down

0 comments on commit 9c3318e

Please sign in to comment.