Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/crates/atlas-server/src/indexer/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ impl MetadataFetcher {
pub fn new(pool: PgPool, config: Config, metrics: Metrics) -> Result<Self> {
let client = reqwest::Client::builder()
.timeout(Duration::from_secs(30))
.user_agent("atlas-server/0.1.0")
.build()
.expect("Failed to create HTTP client");
Comment thread
pthmas marked this conversation as resolved.

Expand Down
6 changes: 2 additions & 4 deletions backend/crates/atlas-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,8 @@ pub(crate) fn postgres_connection_config(db_url: &str) -> Result<PostgresConnect

for (key, value) in url.query_pairs() {
match key.as_ref() {
"dbname" => {
if !value.is_empty() {
database_name = value.into_owned();
}
"dbname" if !value.is_empty() => {
database_name = value.into_owned();
}
"host" => {
set_pg_env(&mut env_vars, "PGHOST", value.as_ref());
Expand Down
Loading