From de00851493e07b9b7a374dc422e4a9f491a5b76c Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Sun, 7 Jul 2013 11:29:10 -0700 Subject: [PATCH] TODO: blobref representation Change-Id: Ide46b799d3a134952f6037ad501f2e55dbb361e1 --- TODO | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TODO b/TODO index 7ac88b7bf..de8369523 100644 --- a/TODO +++ b/TODO @@ -4,6 +4,16 @@ There are two TODO lists. This file (good for airplanes) and the online bug trac Offline list: +-- change representation of *blobref.BlobRef to a value type with smaller + memory usage and no internal string cache, so it can be used as a map + key: + type BlobRef struct { + hash crypto.Hash + sum interface{} // [hash.Size()]byte + } + The string cache, if needed, can in the blobref package, keyed by + blobref. + -- verify that the HTTP blob upload interface caps uploads at MaxBlobSize before giving it to storage impls