Rename module

This commit is contained in:
Dominik Werder
2024-04-29 11:34:54 +02:00
parent 78403b2537
commit 879b85d210
10 changed files with 16 additions and 11 deletions

View File

@@ -8,14 +8,13 @@ use httpclient::body_empty;
use httpclient::connect_client;
use httpclient::http;
use httpclient::http::StatusCode;
use httpclient::http_body_util::BodyExt;
use httpclient::hyper::Request;
use httpclient::IncomingStream;
use netpod::log::*;
use netpod::ScalarType;
use netpod::Shape;
use netpod::APP_CBOR_FRAMED;
use streams::cbor::FramedBytesToSitemtyDynEventsStream;
use streams::cbor_stream::FramedBytesToSitemtyDynEventsStream;
use url::Url;
#[derive(Debug, ThisError)]

View File

@@ -20,9 +20,7 @@ use err::ThisError;
use netpod::log::*;
use netpod::Database;
use netpod::NodeConfigCached;
use netpod::ScalarType;
use netpod::SfDbChannel;
use netpod::Shape;
use netpod::TableSizes;
use pg::Client as PgClient;
use pg::NoTls;

View File

@@ -25,7 +25,14 @@ impl BackendListHandler {
if req.method() == Method::GET {
if accepts_json_or_all(req.headers()) {
let res = serde_json::json!({
"backends_available": ["sf-databuffer"]
"backends_available": [
{
"name": "sf-databuffer",
},
{
"name": "sf-imagebuffer",
},
]
});
let body = serde_json::to_string(&res)?;
Ok(response(StatusCode::OK).body(body_string(body))?)

View File

@@ -92,6 +92,7 @@ pub async fn find_config_basics_quorum(
ctx: &ReqCtx,
ncc: &NodeConfigCached,
) -> Result<Option<ChannelTypeConfigGen>, Error> {
trace!("find_config_basics_quorum");
if let Some(_cfg) = &ncc.node.sf_databuffer {
let channel = if channel.name().is_empty() {
if let Some(_) = channel.series() {

View File

@@ -1,4 +1,4 @@
use crate::cbor::CborBytes;
use crate::cbor_stream::CborBytes;
use futures_util::future;
use futures_util::Stream;
use futures_util::StreamExt;

View File

@@ -1,4 +1,4 @@
use crate::cbor::SitemtyDynEventsStream;
use crate::cbor_stream::SitemtyDynEventsStream;
use bytes::Bytes;
use err::Error;
use futures_util::Stream;

View File

@@ -1,5 +1,5 @@
pub mod boxed;
pub mod cbor;
pub mod cbor_stream;
pub mod collect;
pub mod dtflags;
pub mod filechunkread;

View File

@@ -1,5 +1,5 @@
use crate::cbor::events_stream_to_cbor_stream;
use crate::cbor::CborStream;
use crate::cbor_stream::events_stream_to_cbor_stream;
use crate::cbor_stream::CborStream;
use crate::firsterr::non_empty;
use crate::firsterr::only_first_err;
use crate::plaineventsstream::dyn_events_stream;

View File

@@ -1,4 +1,4 @@
use crate::cbor::FramedBytesToSitemtyDynEventsStream;
use crate::cbor_stream::FramedBytesToSitemtyDynEventsStream;
use crate::firsterr::only_first_err;
use crate::frames::inmem::BoxedBytesStream;
use crate::lenframed;