Skip to content

Commit

Permalink
Set WithBatching option in example-gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Jul 25, 2024
1 parent 752b8c5 commit 65a4bc5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/example-gcp/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"net/http"
"os"
"strings"
"time"

tessera "github.com/transparency-dev/trillian-tessera"
"github.com/transparency-dev/trillian-tessera/storage/gcp"
Expand All @@ -50,7 +51,10 @@ func main() {
Bucket: *bucket,
Spanner: *spanner,
}
storage, err := gcp.New(ctx, gcpCfg, tessera.WithCheckpointSignerVerifier(signerFromFlags(), nil))
storage, err := gcp.New(ctx, gcpCfg,
tessera.WithCheckpointSignerVerifier(signerFromFlags(), nil),
tessera.WithBatching(1024, time.Second),
)
if err != nil {
klog.Exitf("Failed to create new GCP storage: %v", err)
}
Expand Down

0 comments on commit 65a4bc5

Please sign in to comment.