use a proper function for this instead of checking 200
Signed-off-by: girlbossceo <june@girlboss.ceo>
This commit is contained in:
parent
9bb1dca5f1
commit
64084fb2d0
3 changed files with 4 additions and 4 deletions
|
@ -97,7 +97,7 @@ impl Service {
|
|||
Vec::new().into()
|
||||
}); // TODO: handle timeout
|
||||
|
||||
if status != 200 {
|
||||
if !status.is_success() {
|
||||
info!(
|
||||
"Push gateway returned bad response {} {}\n{}\n{:?}",
|
||||
destination,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue