generated from Patagia/template-nix
Compare commits
1 commit
6899ba21ad
...
35dd1a7d6e
Author | SHA1 | Date | |
---|---|---|---|
35dd1a7d6e |
1 changed files with 2 additions and 5 deletions
|
@ -6,8 +6,6 @@ use crate::io_patagia_Hostd::{
|
|||
|
||||
mod io_patagia_Hostd;
|
||||
|
||||
const LISTEN_ADDRESS: &str = "unix:/tmp/io.patagia.Hostd";
|
||||
|
||||
struct Hostd;
|
||||
|
||||
impl VarlinkInterface for Hostd {
|
||||
|
@ -24,7 +22,7 @@ impl VarlinkInterface for Hostd {
|
|||
value: "value".to_string(),
|
||||
}]),
|
||||
patagiaAgent: Option::from(PatagiaAgentConfig {
|
||||
url: "https://cdn.patagia.dev/patagia-agent/stable".to_string(),
|
||||
url: "hostname".to_string(),
|
||||
extraMounts: HashMap::new(),
|
||||
}),
|
||||
};
|
||||
|
@ -45,9 +43,8 @@ fn main() {
|
|||
);
|
||||
let ret: Result<(), varlink::Error> = varlink::listen(
|
||||
svc,
|
||||
LISTEN_ADDRESS,
|
||||
"unix:/tmp/io.patagia.Hostd",
|
||||
&varlink::ListenConfig {
|
||||
// Listen forever (0 = forever)
|
||||
idle_timeout: 0,
|
||||
..Default::default()
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue