From debc750e2f483c525cde1af232c1780a84e4ac09 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sun, 24 Jul 2022 01:06:59 +0800 Subject: [PATCH] feat: container --- __wasm/wit-bindgen-sample/container/src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/__wasm/wit-bindgen-sample/container/src/main.rs b/__wasm/wit-bindgen-sample/container/src/main.rs index 3aee21d..730aa66 100644 --- a/__wasm/wit-bindgen-sample/container/src/main.rs +++ b/__wasm/wit-bindgen-sample/container/src/main.rs @@ -1,9 +1,11 @@ extern crate core; use std::time::SystemTime; + use anyhow::Result; use serde_json::Value; use wasmtime::{Config, Engine, Instance, Linker, Module, Store}; + use crate::fn_common::FnResult; mod fn_common; @@ -55,7 +57,7 @@ fn main() -> Result<()> { console.log('query: ' + 'print_request.action'); a.push(fetch('https://hatter.ink/util/print_request.action', { headers: { - 'Test-Header': 'this is a test header' + 'Test-Header': 'this is a test header', } })); // a.push(fetch('https://hatter.ink/ip.action'));