Skip to content

Commit

Permalink
fix: remove allow_connect() from more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gotlougit committed Sep 26, 2023
1 parent f7596ff commit eb3bad5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/ipc_server_with_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ fn run_client_read() {
SafetyContext::new()
.enable(Networking::nothing()
// Necessary for DNS
.allow_connect().yes_really()
.allow_start_udp_servers().yes_really()
.allow_start_tcp_clients()).unwrap()
// For some reason only if we make two requests with a client does it use multiple threads,
Expand Down
1 change: 0 additions & 1 deletion examples/network_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ fn main() {
thread::sleep(std::time::Duration::from_millis(50));
SafetyContext::new()
.enable(Networking::nothing()
.allow_connect().yes_really()
.allow_running_tcp_servers()
.allow_start_tcp_clients()
).unwrap()
Expand Down
2 changes: 0 additions & 2 deletions examples/server_with_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ fn run_client_write(msg: &str) {
// Set up extrasafe context
SafetyContext::new()
.enable(Networking::nothing()
.allow_connect().yes_really()
.allow_start_tcp_clients()).unwrap()
.apply_to_current_thread()
.unwrap();
Expand Down Expand Up @@ -225,7 +224,6 @@ fn run_client_read() {
// enable extrasafe context
SafetyContext::new()
.enable(Networking::nothing()
.allow_connect().yes_really()
// Necessary for DNS
.allow_start_udp_servers().yes_really()
.allow_start_tcp_clients()).unwrap()
Expand Down

0 comments on commit eb3bad5

Please sign in to comment.