Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
fixing proof slowdown
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Aug 24, 2023
1 parent 5a21ccd commit c1bbb59
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions jprov/server/proofs.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,11 +462,13 @@ func postProofs(cmd *cobra.Command, db *leveldb.DB, q *queue.UploadQueue, ctx *u
continue
}

err = postProof(clientCtx, cid, block, db, q, ctx)
if err != nil {
ctx.Logger.Error(fmt.Sprintf("Posting Proof Error: %v", err))
continue
}
go func() {
err = postProof(clientCtx, cid, block, db, q, ctx)
if err != nil {
ctx.Logger.Error(fmt.Sprintf("Posting Proof Error: %v", err))
}
}()

sleep, err := cmd.Flags().GetInt64(types.FlagSleep)
if err != nil {
ctx.Logger.Error(err.Error())
Expand Down

0 comments on commit c1bbb59

Please sign in to comment.