Skip to content

Commit

Permalink
bump hostname version
Browse files Browse the repository at this point in the history
  • Loading branch information
suharev7 committed Feb 11, 2020
1 parent cf08297 commit 2c15b27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ failure = "^0.1.5"
failure_derive = "^0.1.5"
futures-core = "0.3.0"
futures-sink = "0.3.0"
hostname = "^0.1"
hostname = "^0.3"
lazy_static = "1.4.0"
lz4 = "1.23.1"
pin-project = "0.4.5"
Expand Down
4 changes: 2 additions & 2 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{borrow::Cow, collections::HashMap, fmt, mem, pin::Pin, sync::Mutex};

use chrono_tz::Tz;
use hostname::get_hostname;
use hostname::get;

use lazy_static::lazy_static;

Expand Down Expand Up @@ -114,7 +114,7 @@ impl Default for Context {
fn default() -> Self {
Self {
server_info: ServerInfo::default(),
hostname: get_hostname().unwrap(),
hostname: get().unwrap().into_string().unwrap(),
options: OptionsSource::default(),
}
}
Expand Down

0 comments on commit 2c15b27

Please sign in to comment.