Fix endpoint URL

This commit is contained in:
Ludo Galabru
2020-07-06 14:56:46 -04:00
parent a3692195f9
commit 71f076e1c5
2 changed files with 2 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ This is enabled by adding an entry to the node's `config.toml` file:
```toml
...
[[events_observer]]
endpoint = "http://listener:3700"
endpoint = "listener:3700"
events_keys = [
"*"
]

View File

@@ -46,7 +46,7 @@ impl EventObserver {
};
let url = {
let url = format!("{}{}", &self.endpoint, path);
let url = format!("http://{}/{}", &self.endpoint, path);
Url::parse(&url).expect(&format!("Unable to parse {} as a URL", url))
};