Skip to content

Commit

Permalink
chore: Bump sushii-api to v0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Jan 6, 2021
1 parent 1c77f3e commit e8b5599
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions sushii-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]

## [0.1.2] - 2021-01-05

### Fixed

- Remove INFO logging insert and follow env var setting


[unreleased]: https://github.com/sushiibot/sushii-2/compare/sushii-api-v0.1.2...HEAD
[0.1.2]: https://github.com/sushiibot/sushii-2/compare/sushii-api-v0.1.1...sushii-api-v0.1.2
[0.1.1]: https://github.com/sushiibot/sushii-2/compare/sushii-api-v0.1.0...sushii-api-v0.1.1
2 changes: 1 addition & 1 deletion sushii-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sushii-api"
version = "0.1.1"
version = "0.1.2"
authors = ["drklee3 <derrick@dlee.dev>"]
edition = "2018"

Expand Down
12 changes: 6 additions & 6 deletions sushii-api/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ fn schema() -> Schema {
async fn graphiql_handler() -> Result<HttpResponse, Error> {
gqli_handler("/", None).await
}

async fn playground_handler() -> Result<HttpResponse, Error> {
play_handler("/", None).await
}
Expand All @@ -50,12 +51,11 @@ async fn main() -> std::io::Result<()> {
.with_env_filter(EnvFilter::from_default_env())
.init();

let interface_port = env::var("INTERFACE_PORT")
.unwrap_or_else(|_| {
tracing::warn!("INTERFACE_PORT not in environment, falling back to 127.0.0.1:8080");

"127.0.0.1:8080".into()
});
let interface_port = env::var("INTERFACE_PORT").unwrap_or_else(|_| {
tracing::warn!("INTERFACE_PORT not in environment, falling back to 127.0.0.1:8080");

"127.0.0.1:8080".into()
});

let db_url = env::var("DATABASE_URL").expect("Missing DATABASE_URL in environment");

Expand Down

0 comments on commit e8b5599

Please sign in to comment.