mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
scripts/run-aquatic-ws: support running either mio or glommio impl
This commit is contained in:
parent
b54694bbc0
commit
1c8da337a1
1 changed files with 11 additions and 2 deletions
|
|
@ -1,5 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
. ./scripts/env-native-cpu-without-avx-512
|
. ./scripts/env-native-cpu-without-avx-512
|
||||||
|
|
||||||
cargo run --release --bin aquatic_ws -- $@
|
if [[ -z $1 ]]; then
|
||||||
|
echo "Usage: $0 [mio|glommio]"
|
||||||
|
else
|
||||||
|
if [ "$1" = "mio" ]; then
|
||||||
|
cargo run --release --bin aquatic_ws -- "${@:2}"
|
||||||
|
else
|
||||||
|
cargo run --release --features "with-glommio" --no-default-features --bin aquatic_ws -- "${@:2}"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue