Merge remote-tracking branch 'origin/main' into lint-fix
This commit is contained in:
commit
a3bc0b07e2
14 changed files with 10079 additions and 154 deletions
|
|
@ -85,7 +85,7 @@ async fn handle_stream(
|
|||
let mut wrapped_writer = ServerProtoWrapper::new(writer, config.get_throttle());
|
||||
let result = match request {
|
||||
Ok(req) => {
|
||||
handle_connection(&mut reader, &mut wrapped_writer, req, state, token, config).await
|
||||
handle_connection(&mut reader, &mut wrapped_writer, req, state, token).await
|
||||
}
|
||||
Err(ServerHandshakeError::IsCancelRequest(cancel)) => {
|
||||
handle_cancellation(cancel.pid, cancel.secret, &tokens).await
|
||||
|
|
@ -141,7 +141,6 @@ async fn handle_connection<R, W>(
|
|||
request: HandshakeRequest,
|
||||
state: SharedDbState,
|
||||
token: ResetCancelToken,
|
||||
config: Arc<Configuration>,
|
||||
) -> anyhow::Result<()>
|
||||
where
|
||||
R: FrontendProtoReader + Send,
|
||||
|
|
@ -157,7 +156,7 @@ where
|
|||
break;
|
||||
}
|
||||
FrontendMessage::Query(data) => {
|
||||
let result = handle_query(writer, &state, data.query.into(), &token, &config).await;
|
||||
let result = handle_query(writer, &state, data.query.into(), &token).await;
|
||||
match result {
|
||||
Ok(_) => {}
|
||||
Err(e) => writer.write_error_message(&e.to_string()).await?,
|
||||
|
|
@ -176,7 +175,6 @@ async fn handle_query<W>(
|
|||
state: &SharedDbState,
|
||||
query: String,
|
||||
token: &ResetCancelToken,
|
||||
config: &Arc<Configuration>,
|
||||
) -> anyhow::Result<()>
|
||||
where
|
||||
W: BackendProtoWriter + ProtoFlush + Send,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue