Rename module
This commit is contained in:
@@ -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)]
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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))?)
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use crate::cbor::SitemtyDynEventsStream;
|
||||
use crate::cbor_stream::SitemtyDynEventsStream;
|
||||
use bytes::Bytes;
|
||||
use err::Error;
|
||||
use futures_util::Stream;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pub mod boxed;
|
||||
pub mod cbor;
|
||||
pub mod cbor_stream;
|
||||
pub mod collect;
|
||||
pub mod dtflags;
|
||||
pub mod filechunkread;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user