Skip to content

Commit

Permalink
fix(proposals): Incremental proposal key for zero proposals (#8005)
Browse files Browse the repository at this point in the history
Change the proposal's unique key to an atomic counter instead of using a randomly generated key.

(cherry picked from commit a515d0d)
(cherry picked from commit 2aa3d3e)
  • Loading branch information
ahsanbarkati authored and all-seeing-code committed Jan 24, 2023
1 parent b3b4042 commit aa18d23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions worker/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ import (
"sync/atomic"
"time"

"github.com/pkg/errors"
ostats "go.opencensus.io/stats"
tag "go.opencensus.io/tag"
otrace "go.opencensus.io/trace"

"github.com/dgraph-io/dgraph/conn"
"github.com/dgraph-io/dgraph/protos/pb"
"github.com/dgraph-io/dgraph/schema"
"github.com/dgraph-io/dgraph/x"

"github.com/pkg/errors"
ostats "go.opencensus.io/stats"
tag "go.opencensus.io/tag"
otrace "go.opencensus.io/trace"
)

const baseTimeout time.Duration = 4 * time.Second
Expand Down

0 comments on commit aa18d23

Please sign in to comment.