Skip to content

Commit

Permalink
fix: add delay for merkle proof service
Browse files Browse the repository at this point in the history
  • Loading branch information
jilio committed Oct 4, 2024
1 parent 6c84a47 commit 960f795
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/zkcert/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func (s *Service) AddZKCertToQueue(
) {
s.taskQueue.Add(tq.NewTask(
func() (zkcertificate.IssuedCertificate[zkcertificate.KYCContent], error) {
// This is to give the merkle proof service time to "see" the latest merkle proof root
time.Sleep(3 * time.Second)

_, issuedCert, err := cmd.IssueZKCert(ctx, certificate, s.EthClient, s.merkleProofClient, s.registryAddress, s.providerKey)
if err != nil {
log.WithError(err).Error("issue zk certificate")
Expand Down

0 comments on commit 960f795

Please sign in to comment.