Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Dec 8, 2024
1 parent 558546f commit 4a1f5c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common/exception/src/exception_into.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl From<tonic::Status> for ErrorCode {
tonic::Code::Unknown => {
let details = status.details();
if details.is_empty() {
if status.source().map_or(false, |e| e.is::<hyper::Error>()) {
if status.source().is_some_and(|e| e.is::<hyper::Error>()) {
return ErrorCode::CannotConnectNode(format!(
"{}, source: {:?}",
status.message(),
Expand Down
2 changes: 1 addition & 1 deletion tests/suites/1_stateful/09_http_handler/09_0009_cookie.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
super().__init__()

def set_cookie(self, cookie: Cookie, *args, **kwargs):
assert cookie.path == "/" , cookie
assert cookie.path == "/", cookie
# "" is prefix of any host name or IP, so it will be applied
cookie.domain = ""
super().set_cookie(cookie, *args, **kwargs)
Expand Down

0 comments on commit 4a1f5c8

Please sign in to comment.