fix tokio deprecation
This commit is contained in:
parent
e3a45129cb
commit
00a6f5c758
@ -366,7 +366,7 @@ fn main() {
|
|||||||
let mut runtime = runtime::Builder::new()
|
let mut runtime = runtime::Builder::new()
|
||||||
.enable_all()
|
.enable_all()
|
||||||
.threaded_scheduler()
|
.threaded_scheduler()
|
||||||
.num_threads(4)
|
.core_threads(4)
|
||||||
.thread_name("trust-dns-server-runtime")
|
.thread_name("trust-dns-server-runtime")
|
||||||
.build()
|
.build()
|
||||||
.expect("failed to initialize Tokio Runtime");
|
.expect("failed to initialize Tokio Runtime");
|
||||||
|
@ -13,4 +13,7 @@ COVERAGE_OUTPUT_DIR=${KCOV_TARGET_DIRECTORY:?}/$(basename ${1:?})
|
|||||||
mkdir -p ${COVERAGE_OUTPUT_DIR:?}
|
mkdir -p ${COVERAGE_OUTPUT_DIR:?}
|
||||||
|
|
||||||
# run kcov
|
# run kcov
|
||||||
exec ${KCOV:?} --include-pattern=${KCOV_INCLUDE_PATTERN:?} ${KCOV_EXCLUDE_LINE_ARG} ${KCOV_EXCLUDE_REGION_ARG} ${COVERAGE_OUTPUT_DIR:?} $@
|
KCOV_CALL="${KCOV:?} --include-pattern=${KCOV_INCLUDE_PATTERN:?} ${KCOV_EXCLUDE_LINE_ARG} ${KCOV_EXCLUDE_REGION_ARG} ${COVERAGE_OUTPUT_DIR:?} $@"
|
||||||
|
|
||||||
|
echo ${KCOV_CALL:?}
|
||||||
|
exec ${KCOV_CALL:?}
|
Loading…
Reference in New Issue
Block a user