Skip to content

Commit

Permalink
Remove some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Sep 20, 2023
1 parent fe67775 commit e5877f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions spawn-rs/src/handler/actor_router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ use crate::actor::ActorDefinition;

use crate::eigr::spawn::actor_invocation::Payload;
use crate::eigr::spawn::actor_invocation_response::Payload as ResponsePayload;
use crate::eigr::spawn::{
ActorId, ActorInvocation, ActorInvocationResponse, Context, Noop, Workflow,
};
use crate::eigr::spawn::{ActorId, ActorInvocation, ActorInvocationResponse, Context, Workflow};
use crate::value::Value;
use crate::Message as ActorMessage;
use crate::{Context as ActorContext, SpawnClient};
Expand Down
14 changes: 7 additions & 7 deletions spawn-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ impl Context {
#[derive(Debug, Clone)]
pub struct SpawnClient {
client: Client,
proxyPort: u16,
proxyHost: String,
proxy_port: u16,
proxy_host: String,
}

impl Default for SpawnClient {
fn default() -> SpawnClient {
SpawnClient {
client: Client::new(),
proxyPort: 9001,
proxyHost: "127.0.0.1".to_string(),
proxy_port: 9001,
proxy_host: "127.0.0.1".to_string(),
}
}
}
Expand All @@ -145,12 +145,12 @@ impl SpawnClient {
}

pub fn set_proxy_port(&mut self, port: u16) -> &mut SpawnClient {
self.proxyPort = port;
self.proxy_port = port;
self
}

pub fn set_proxy_host(&mut self, host: String) -> &mut SpawnClient {
self.proxyHost = host;
self.proxy_host = host;
self
}

Expand Down Expand Up @@ -255,7 +255,7 @@ impl SpawnClient {
.client
.post(format!(
"http://{}:{}/api/v1/system",
self.proxyHost, self.proxyPort,
self.proxy_host, self.proxy_port,
))
.header("Content-Type", "application/octet-stream")
.body(request_buffer)
Expand Down

0 comments on commit e5877f1

Please sign in to comment.