From c7835e88111d16026ba49aad4e89bf825038bec2 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Thu, 4 Jun 2020 09:09:09 +0100 Subject: [PATCH] Update log level and add some TODOs --- database/database.go | 2 +- webapi/setvotechoices.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/database/database.go b/database/database.go index e36c1d2..77e103d 100644 --- a/database/database.go +++ b/database/database.go @@ -61,7 +61,7 @@ func writeBackup(db *bolt.DB, dbFile string) error { return fmt.Errorf("os.Rename: %v", err) } - log.Debugf("Database backup written to %s", backupPath) + log.Tracef("Database backup written to %s", backupPath) return err } diff --git a/webapi/setvotechoices.go b/webapi/setvotechoices.go index 20628ff..7804429 100644 --- a/webapi/setvotechoices.go +++ b/webapi/setvotechoices.go @@ -58,6 +58,8 @@ func setVoteChoices(c *gin.Context) { for agenda, choice := range voteChoices { for _, walletClient := range walletClients { err = walletClient.SetVoteChoice(agenda, choice, ticket.Hash) + // TODO: This will error if the wallet does not know about the ticket yet. + // TODO: We shouldn't return on first error - we want to try all wallets. if err != nil { log.Errorf("SetVoteChoice failed: %v", err) sendErrorResponse("dcrwallet RPC error", http.StatusInternalServerError, c)