Skip to content

Commit

Permalink
fix: Resolve compilation errors by correcting imports and method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
scottopell committed Dec 27, 2024
1 parent a36eadb commit f1486d4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions integration/ducks/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#![allow(dead_code)]
//! Ducks is an integration testing target for lading.
//!
//! Ducks exists to enable correctness testing on lading. Any high-level
Expand All @@ -15,9 +16,9 @@
use anyhow::Context;
use bytes::BytesMut;
use hyper::{service::service_fn, Method, Request, Response, StatusCode, Body};
use tonic::transport::Server as HyperServer;
use http_body_util::BodyExt;
use hyper::{service::service_fn, Method, Request, Response, StatusCode};
use hyper::body::{Body, to_bytes};
use hyper::Server as HyperServer;
use once_cell::sync::OnceCell;
use shared::{
integration_api::{
Expand Down Expand Up @@ -124,7 +125,7 @@ impl From<&SocketCounters> for SocketMetrics {
#[tracing::instrument(level = "trace")]
async fn http_req_handler(req: Request<BoxBody>) -> Result<Response<BoxBody>, hyper::Error> {
let (parts, body) = req.into_parts();
let body_bytes = body.to_bytes().await?;
let body_bytes = to_bytes(body).await?;

{
let metric = HTTP_COUNTERS.get().expect("HTTP_COUNTERS not initialized");
Expand Down

0 comments on commit f1486d4

Please sign in to comment.