Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cpp/http/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ std::optional<fastly::backend::Backend> Response::get_backend() {

std::optional<std::string> Response::get_backend_addr() {
std::string addr;
bool existed{this->res->get_backend_name(addr)};
bool existed{this->res->get_backend_addr(addr)};
if (!existed) {
return std::nullopt;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/http/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl Response {

pub fn get_stale_while_revalidate(&self, mut out: Pin<&mut u32>) -> bool {
self.0
.get_age()
.get_stale_while_revalidate()
.map(|swr| swr.as_millis())
.map(ensure_u32)
.map(|swr| out.set(swr))
Expand Down
Loading