Skip to content

Commit 36fdf41

Browse files
CLEANUP: Remove the 'from-dispatcher-to-parent' file communication channel
1 parent 92ea060 commit 36fdf41

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: future.p2p
22
Title: A Peer-to-Peer Compute Cluster via Futureverse
3-
Version: 0.3.0-9023
3+
Version: 0.3.0-9024
44
Description: Implementation of the 'Future' API <doi:10.32614/RJ-2021-048> that resolves futures on a peer-to-peer ('P2P') compute environment. By using this future backend, you and your friends can share your spare compute resources with each other.
55
Imports:
66
future (>= 1.67.0),

R/pico_p2p.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,8 @@ pico_p2p_hosted_clusters <- function(host = "pipe.pico.sh", ssh_args = NULL, tim
340340
pico_p2p_dispatch_future <- function(future) {
341341
send_future <- function(topic, name, host = host, ssh_args = ssh_args, future_id, file, to, via, duration, channels, debug = FALSE) {
342342
update_parent <- function(msg, ...) {
343-
rx <- channels[["rx"]]
344-
if (is.null(rx)) return()
345343
cat(sprintf("dispatcher_status=%s\n", msg), file = stdout())
346-
flush.connection(stdout())
344+
flush(stdout())
347345
}
348346

349347
listen_parent <- function(...) {
@@ -489,8 +487,7 @@ pico_p2p_dispatch_future <- function(future) {
489487
future_id <- future_id(future)
490488
channel_prefix <- sprintf("%s_%s", .packageName, future_id)
491489
channels <- c(
492-
tx = tempfile(pattern = channel_prefix, fileext = ".tx"),
493-
rx = tempfile(pattern = channel_prefix, fileext = ".rx")
490+
tx = tempfile(pattern = channel_prefix, fileext = ".tx")
494491
)
495492
lapply(channels, FUN = file.create, showWarnings = FALSE)
496493

0 commit comments

Comments
 (0)