From 56e54e10a4e5954296424e401aa6793c324e8d59 Mon Sep 17 00:00:00 2001 From: Rob Culliton Date: Tue, 1 May 2018 21:59:00 -0400 Subject: [PATCH] fix logging, error message, inline comments --- src/clj/commiteth/routes/services.clj | 2 +- src/clj/commiteth/scheduler.clj | 3 +-- src/cljs/commiteth/handlers.cljs | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/clj/commiteth/routes/services.clj b/src/clj/commiteth/routes/services.clj index 9f37dcc..797d4e9 100644 --- a/src/clj/commiteth/routes/services.clj +++ b/src/clj/commiteth/routes/services.clj @@ -270,4 +270,4 @@ (ok {:confirm-hash confirm-hash}) (bad-request "The confirm hash could not be updated")) (bad-request "The transaction hash could not be confirmed in a reasonable amount of time")) - (bad-request (str "We were unable to withdraw everything from " contract-address)))))))) + (bad-request (str "Unable to withdraw everything from " contract-address)))))))) diff --git a/src/clj/commiteth/scheduler.clj b/src/clj/commiteth/scheduler.clj index 27706a9..78838a3 100644 --- a/src/clj/commiteth/scheduler.clj +++ b/src/clj/commiteth/scheduler.clj @@ -171,7 +171,7 @@ execute-hash :execute_hash} (db-bounties/pending-payouts)] (update-confirm-hash issue-id execute-hash))) - (log/info "Exit update-confirm-hash")) + (log/info "Exit update-confirm-hashes")) (defn update-watch-hash "Sets watch-hash to NULL for bounties where watch tx has been mined. Used to avoid unneeded watch transactions in update-bounty-token-balances" @@ -502,4 +502,3 @@ :stop (do (log/info "stopping scheduler") (scheduler))) - diff --git a/src/cljs/commiteth/handlers.cljs b/src/cljs/commiteth/handlers.cljs index 4f43b0d..fdc5a5b 100644 --- a/src/cljs/commiteth/handlers.cljs +++ b/src/cljs/commiteth/handlers.cljs @@ -438,7 +438,6 @@ (let [issue-id (:issue_id fields)] {:http {:method POST :url "/api/user/revoke" - ;; merge returned confirm hash with :on-success #(dispatch [:revoke-bounty-success (merge fields %)]) :on-error #(dispatch [:revoke-bounty-error issue-id %]) :params fields}})))