diff options
Diffstat (limited to 'src/client/connector/httpconnector.rs')
| -rw-r--r-- | src/client/connector/httpconnector.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/connector/httpconnector.rs b/src/client/connector/httpconnector.rs index 8f06074..985d9c0 100644 --- a/src/client/connector/httpconnector.rs +++ b/src/client/connector/httpconnector.rs @@ -84,12 +84,13 @@ impl Connection for HTTPConnector { self.handle_response(|| self.client.get(self.pull_url.as_str())) } - fn ntfy(&self, data: String) -> Result<Self::Ok, Self::Err> { + fn ntfy(&self, data: String) -> std::result::Result<(), Self::Err> { self.handle_response(|| { self.client .post(self.ntfy_url.as_str()) .body(data.to_owned()) - }) + })?; + Ok(()) } fn is_prev(&mut self, str: &Self::Ok) -> bool { |
