Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkakkar committed May 3, 2024
1 parent b5c4ebf commit 777788f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions feature-flags/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ pub fn router<R: Client + Send + Sync + 'static>(redis: Arc<R>) -> Router {
// .allow_credentials(true)
// .allow_origin(AllowOrigin::mirror_request());

let router = Router::new()
Router::new()
.route("/flags", post(v0_endpoint::flags).get(v0_endpoint::flags))
.with_state(state);

router
.with_state(state)
}
2 changes: 1 addition & 1 deletion feature-flags/tests/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct ServerHandle {

impl ServerHandle {
pub async fn for_config(config: Config) -> ServerHandle {
let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();
let listener = TcpListener::bind("127.0.0.1:3001").await.unwrap();
let addr = listener.local_addr().unwrap();
let notify = Arc::new(Notify::new());
let shutdown = notify.clone();
Expand Down

0 comments on commit 777788f

Please sign in to comment.