Skip to content

Commit e5d76bb

Browse files
committed
use inline command instead of funtion
1 parent a10e61f commit e5d76bb

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Tools/CI/rust.sh

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,5 @@ cargo run --example ngo_echo_server -- --port $ECHO_SERVER_PORT &
1515
# Build the standalone server
1616
cargo build
1717

18-
# Run the standalone server loop in the background
19-
runstandalone &
20-
21-
# Use a function to run the standalone server in a loop, when it exits, it will always restart
22-
runstandalone() {
23-
while :; do
24-
# loop infinitely
25-
cargo run -- --metrics-port 5000 standalone --port $COMB_SERVER_PORT -t 10m
26-
done
27-
}
18+
# Run the standalone server on an infinite loop in the background
19+
while :; do cargo run -- --metrics-port 5000 standalone --port $COMB_SERVER_PORT -t 10m done &

0 commit comments

Comments
 (0)