mirror of
https://github.com/arnaucube/go-dvote.git
synced 2026-02-28 05:26:46 +01:00
removed some debug statements
This commit is contained in:
@@ -44,20 +44,16 @@ func Add(p types.Packet) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
currentBatchSize++
|
currentBatchSize++
|
||||||
fmt.Println(currentBatchSize)
|
|
||||||
if currentBatchSize >= BatchSize {
|
if currentBatchSize >= BatchSize {
|
||||||
fmt.Println("sending ready")
|
|
||||||
BatchSignal <- true
|
BatchSignal <- true
|
||||||
fmt.Println("sent ready")
|
|
||||||
}
|
}
|
||||||
fmt.Println("returning")
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//create (return batch)
|
//create (return batch)
|
||||||
func Create() []byte {
|
func Create() []byte {
|
||||||
fmt.Println("Creating batch")
|
|
||||||
DB, err = leveldb.OpenFile(DBPath, nil)
|
DB, err = leveldb.OpenFile(DBPath, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user