Skip to content

Commit 9bef600

Browse files
committed
format
1 parent a2b80d6 commit 9bef600

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

modules/service/src/elc.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ where
3535
}
3636
}
3737

38-
async fn streaming_update_client(&self, request: Request<Streaming<MsgUpdateClient>>) -> Result<Response<MsgUpdateClientResponse>, Status> {
38+
async fn streaming_update_client(
39+
&self,
40+
request: Request<Streaming<MsgUpdateClient>>,
41+
) -> Result<Response<MsgUpdateClientResponse>, Status> {
3942
let mut complete = MsgUpdateClient {
4043
signer: vec![],
4144
client_id: "".to_string(),
@@ -46,7 +49,9 @@ where
4649
let mut stream = request.into_inner();
4750
while let Some(chunk) = stream.message().await? {
4851
if let Some(header) = &mut complete.header {
49-
let any_header = chunk.header.ok_or(Status::invalid_argument("header value is required"))?;
52+
let any_header = chunk
53+
.header
54+
.ok_or(Status::invalid_argument("header value is required"))?;
5055
header.value.extend(any_header.value);
5156
} else {
5257
complete = chunk;
@@ -59,7 +64,6 @@ where
5964
}
6065
}
6166

62-
6367
async fn aggregate_messages(
6468
&self,
6569
request: Request<MsgAggregateMessages>,

0 commit comments

Comments
 (0)