From 04ca3b71764c0a958338ddacb92c2f474c5f4e78 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 20 Dec 2021 20:11:22 +0100 Subject: issues: Add issue refactor-pkg-state-single --- issues/refactor-pkg-state-single.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 issues/refactor-pkg-state-single.md (limited to 'issues') diff --git a/issues/refactor-pkg-state-single.md b/issues/refactor-pkg-state-single.md new file mode 100644 index 0000000..78a4e6c --- /dev/null +++ b/issues/refactor-pkg-state-single.md @@ -0,0 +1,20 @@ +**Title:** Refactor pkg/state/single.go
+**Date:** 2021-12-20
+ +# Summary +Remove unwanted dependencies and resolve minor TODOs in `pkg/state/single.go`. + +# Description +Some refactoring is needed in `pkg/state/single.go`. In more detail, the +following dependencies are overkill and should ideally be removed: +- "github.com/google/certificate-transparency-go/schedule" +- "reflect" + +There are also two TODO prints in the code: +``` +$ git g TODO +single.go +115: return fmt.Errorf("signature-signer pair is a duplicate") // TODO: maybe not an error +154: sm.cosignatures = make(map[types.Hash]*types.Signature, 0) // TODO: on repeat we might want to not zero this +``` + -- cgit v1.2.3