more effort

This commit is contained in:
Cadey Ratio 2020-10-30 12:09:53 -04:00
parent 52a6f06f11
commit 0e8f5895b5
2 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ let
in pkgs.mkShell rec {
buildInputs = with pkgs; [ rust diesel-cli postgresql pgcli cargo-watch ];
RUST_LOG = "info,wasmcloud_api=debug,wasmcloud_api::*=debug";
DATABASE_URL = "postgresql://postgres:hunter2@localhost:5432/wasmcloud";
ROCKET_DATABASES = ''
{ main_data = { url = "${DATABASE_URL}" } }'';

View File

@ -141,10 +141,10 @@ pub fn create_config(
let cfg: Vec<models::NewHandlerConfig> = cfg
.into_inner()
.iter()
.into_iter()
.map(|kv| models::NewHandlerConfig {
key_name: kv.key.clone(),
value_contents: kv.value.clone(),
key_name: kv.key,
value_contents: kv.value,
handler_id: handler.id.clone(),
})
.collect();