Skip to content

Commit

Permalink
Remove autostart
Browse files Browse the repository at this point in the history
  • Loading branch information
ElianHugh committed Sep 16, 2024
1 parent cdcf0ea commit 12ff094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion R/engine.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ new_engine <- function(config) {
config$host,
config$socket_port
),
autostart = TRUE
autostart = FALSE
)
)
),
Expand Down Expand Up @@ -64,6 +64,10 @@ buildup_engine <- function(engine) {
cli_server_start_progress(engine)
res <- new_runner(engine)

if (engine$publisher$listener[[1L]][["state"]] != "started") {
start(engine$publisher$listener[[1L]])
}

if (!res) {
cli::cli_progress_done(result = "failed")
} else {
Expand Down
2 changes: 1 addition & 1 deletion inst/examples/plumber.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#' @get /
#' @serializer html
function() {
"Hello, world."
"Hello, world!"
}

0 comments on commit 12ff094

Please sign in to comment.