diff options
Diffstat (limited to 'dht/slab.go')
| -rw-r--r-- | dht/slab.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dht/slab.go b/dht/slab.go index 737b0b6..a8b4018 100644 --- a/dht/slab.go +++ b/dht/slab.go @@ -14,11 +14,11 @@ func newSlab(blockSize int, numBlocks int) slab { return s } -func (s slab) Alloc() (x []byte) { +func (s slab) alloc() (x []byte) { return <-s } -func (s slab) Free(x []byte) { +func (s slab) free(x []byte) { // Check we are using the right dimensions x = x[:cap(x)] s <- x |
