File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ import (
27
27
"github.com/transparency-dev/formats/log"
28
28
"github.com/transparency-dev/merkle/proof"
29
29
hasher "github.com/transparency-dev/merkle/rfc6962"
30
+ "github.com/transparency-dev/tessera/api/layout"
30
31
"github.com/transparency-dev/tesseract/internal/client"
31
32
"github.com/transparency-dev/tesseract/internal/types/rfc6962"
32
33
"github.com/transparency-dev/tesseract/internal/x509util"
33
- "github.com/transparency-dev/tessera/api/layout"
34
34
"k8s.io/klog/v2"
35
35
)
36
36
@@ -220,13 +220,14 @@ func (w *LogWriter) Run(ctx context.Context) {
220
220
panic ("LogWriter was run multiple times" )
221
221
}
222
222
ctx , w .cancel = context .WithCancel (ctx )
223
+ newLeaf := w .gen ()
223
224
for {
224
225
select {
225
226
case <- ctx .Done ():
226
227
return
227
228
case <- w .throttle :
228
229
}
229
- newLeaf := w . gen ()
230
+
230
231
lt := LeafTime {QueuedAt : time .Now ()}
231
232
index , timestamp , err := w .writer (ctx , newLeaf )
232
233
if err != nil {
@@ -264,6 +265,7 @@ func (w *LogWriter) Run(ctx context.Context) {
264
265
}
265
266
266
267
klog .V (2 ).Infof ("Wrote leaf at index %d" , index )
268
+ newLeaf = w .gen ()
267
269
}
268
270
}
269
271
You can’t perform that action at this time.
0 commit comments