Remove unused field
parent
f346262be7
commit
69ada6e861
|
@ -17,14 +17,13 @@ where
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Context {
|
pub struct Context {
|
||||||
// unit: Slave,
|
// unit: Slave,
|
||||||
host: String,
|
|
||||||
service: sungrow_winets::Client,
|
service: sungrow_winets::Client,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Context {
|
impl Context {
|
||||||
async fn new(host: String) -> Result<Self, Error> {
|
async fn new(host: String) -> Result<Self, Error> {
|
||||||
let service = sungrow_winets::Client::new(&host).await?;
|
let service = sungrow_winets::Client::new(&host).await?;
|
||||||
Ok(Self { host, service })
|
Ok(Self { service })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue