some TODOs

Change-Id: Ifcc2612ea323347ba78d5cb493ebe9fabd3a10aa
This commit is contained in:
Brad Fitzpatrick 2012-11-03 22:27:27 +01:00
parent 73266993ff
commit 0ccf9ba3f1
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ type FakeIndex struct {
path map[string]*search.Path // "<signer>\0<base>\0<suffix>" -> path
cllk sync.Mutex
clock int64
clock int64 // TODO(bradfitz): make this a time.Time
}
var _ search.Index = (*FakeIndex)(nil)
@ -58,7 +58,7 @@ func NewFakeIndex() *FakeIndex {
func (fi *FakeIndex) nextDate() time.Time {
fi.cllk.Lock()
fi.clock++
fi.clock++ // TODO: fi.clock.Add(1 * time.Second)
clock := fi.clock
fi.cllk.Unlock()
return time.Unix(clock, 0).UTC()