Skip to content

Commit 3972590

Browse files
committed
Expand comments on epoch time dilution
1 parent 8abfbba commit 3972590

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

federation/federation.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ func (f *Federation) snapshot(ctx context.Context, t time.Time) error {
119119
return err
120120
}
121121
newSnapshot := &Snapshot{
122-
Epoch: uint64(t.UTC().Unix()), // TODO: consider time dilution?
122+
// TODO: consider reducing the granularity of epoch. Millisecond increments in terms of unix clock may be too
123+
// fine for the purposes of IPNI federation.
124+
Epoch: uint64(t.UTC().Unix()),
123125
VectorClock: f.vc.tick(f.host.ID()),
124126
Providers: ProvidersIngestStatusMap{
125127
Values: make(map[string]IngestStatus),

0 commit comments

Comments
 (0)