We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53d1fad commit b605fadCopy full SHA for b605fad
2 files changed
.github/workflows/build-and-deploy-rust.yml
@@ -45,6 +45,9 @@ jobs:
45
run: |
46
sleep 5
47
48
+ # Health check
49
+ curl -f http://localhost:8080/vss/health
50
+
51
# Put request with store='storeId' and key=k1
52
hex=0A0773746F726549641A150A026B3110FFFFFFFFFFFFFFFFFF011A046B317631
53
curl -f --data-binary "$(echo "$hex" | xxd -r -p)" http://localhost:8080/vss/putObjects
rust/server/src/vss_service.rs
@@ -80,6 +80,10 @@ impl Service<Request<Incoming>> for VssService {
80
let prefix_stripped_path = path.strip_prefix(BASE_PATH_PREFIX).unwrap_or_default();
81
82
match prefix_stripped_path {
83
+ "/health" => Ok(Response::builder()
84
+ .status(StatusCode::OK)
85
+ .body(Full::new(Bytes::new()))
86
+ .unwrap()),
87
"/getObject" => {
88
handle_request(
89
store,
0 commit comments