mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 08:10:50 +00:00
Remove delay
This commit is contained in:
parent
9c9ba2a8a8
commit
146dc92acc
1 changed files with 0 additions and 3 deletions
|
|
@ -8,7 +8,6 @@ import (
|
|||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/coreos/go-etcd/etcd"
|
||||
)
|
||||
|
|
@ -84,8 +83,6 @@ func (self *Nexter) countloop(ch chan uint64, id int, client *etcd.Client) {
|
|||
}
|
||||
_, err = client.CompareAndSwap(path, strconv.FormatUint(end, 10), 0, strconv.FormatUint(start, 10), 0)
|
||||
if err != nil {
|
||||
log.Println("Error with CompareAndSet! Trying again in 1 second...")
|
||||
time.Sleep(time.Second)
|
||||
continue
|
||||
}
|
||||
for c := start; c < end; c += 1 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue