Skip to content
Permalink
Browse files

server/status_server: Set default value of `seconds`

Set default value of `seconds` parameter according to TiDB
status_server. (10 seconds)
  • Loading branch information...
YangKeao committed Jun 5, 2019
1 parent 2ca9bb2 commit b1207f49e963c6a15e49788e431cbc5be62a332a
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/server/status_server.rs
@@ -156,13 +156,7 @@ impl StatusServer {
return Box::new(ok(response));
}
},
None => {
let response = Response::builder()
.status(StatusCode::BAD_REQUEST)
.body(Body::empty())
.unwrap();
return Box::new(ok(response));
}
None => 10,
};

Box::new(

0 comments on commit b1207f4

Please sign in to comment.
You can’t perform that action at this time.