Skip to content

Commit ba47830

Browse files
committed
Fix mode and rustfmt
1 parent 046eff4 commit ba47830

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

server/src/banner.rs

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919

2020
use crossterm::style::Stylize;
2121

22+
use crate::utils::uid::Uid;
2223
use crate::{option::Config, storage::StorageMetadata};
23-
use crate::utils::{uid::Uid};
2424

2525
pub fn print(config: &Config, meta: StorageMetadata) {
2626
let scheme = config.parseable.get_scheme();
@@ -43,30 +43,34 @@ fn status_info(config: &Config, scheme: &str, id: Uid) {
4343
url,
4444
"\"Using default creds admin, admin. Please set credentials with P_USERNAME and P_PASSWORD.\"".to_string().red(),
4545
id.to_string()
46-
);
46+
);
4747
} else {
4848
eprintln!(
4949
"
5050
{}
5151
Running at: \"{}\"
5252
Credentials: \"As set in P_USERNAME and P_PASSWORD environment variables\"
5353
Deployment UID: \"{}\"",
54-
"Parseable Server".to_string().bold(),
55-
url,
56-
id.to_string(),
57-
);
54+
"Parseable Server".to_string().bold(),
55+
url,
56+
id.to_string(),
57+
);
5858
}
5959
}
6060

6161
fn storage_info(config: &Config) {
62+
let mut mode = "S3 bucket";
63+
if config.storage_name == "drive" {
64+
mode = "Local drive";
65+
}
6266
eprintln!(
6367
"
6468
{}
6569
Mode: \"{}\"
6670
Staging: \"{}\"
6771
Store: \"{}\"",
6872
"Storage:".to_string().cyan().bold(),
69-
config.storage_name,
73+
mode,
7074
config.staging_dir().to_string_lossy(),
7175
config.storage().get_endpoint(),
7276
)

0 commit comments

Comments
 (0)