From 0e8f5895b557a0ebdf192bb8c10378b690321cb3 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 30 Oct 2020 12:09:53 -0400 Subject: [PATCH] more effort --- shell.nix | 1 + src/api/handler.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/shell.nix b/shell.nix index 04d5003..e573367 100644 --- a/shell.nix +++ b/shell.nix @@ -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}" } }''; diff --git a/src/api/handler.rs b/src/api/handler.rs index cd780ca..351679d 100644 --- a/src/api/handler.rs +++ b/src/api/handler.rs @@ -141,10 +141,10 @@ pub fn create_config( let cfg: Vec = 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();