File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ type loader struct {
7777 conflicts map [uint64 ]struct {}
7878 uidsLock sync.RWMutex
7979
80- reqNum uint64
8180 reqs chan * request
8281 zeroconn * grpc.ClientConn
8382 schema * Schema
@@ -161,6 +160,7 @@ func (l *loader) infinitelyRetry(req *request) {
161160
162161func (l * loader ) mutate (req * request ) error {
163162 atomic .AddInt32 (& l .inflight , 1 )
163+ defer atomic .AddInt32 (& l .inflight , - 1 )
164164 txn := l .dc .NewTxn ()
165165 req .CommitNow = true
166166 request := & api.Request {
@@ -172,8 +172,6 @@ func (l *loader) mutate(req *request) error {
172172}
173173
174174func (l * loader ) request (req * request ) {
175- atomic .AddUint64 (& l .reqNum , 1 )
176- defer atomic .AddInt32 (& l .inflight , - 1 )
177175 err := l .mutate (req )
178176 if err == nil {
179177 atomic .AddUint64 (& l .nquads , uint64 (len (req .Set )))
You can’t perform that action at this time.
0 commit comments