Fix ton of bugs

This commit is contained in:
Richard Patel
2018-11-17 04:18:22 +01:00
parent 0fe97a8058
commit d596882b40
9 changed files with 146 additions and 93 deletions

View File

@@ -16,6 +16,7 @@ package redblackhash
import (
"bytes"
"fmt"
"sync"
)
const (
@@ -28,6 +29,7 @@ type Key [KeySize]byte
// Tree holds elements of the red-black tree
type Tree struct {
sync.Mutex
Root *Node
size int
}