From 7a5761a67cca894f076bcc034c4d2d59b0e1a68e Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 24 Jul 2015 15:05:27 +1000 Subject: [PATCH] Fixed some TODOs. --- connection.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/connection.go b/connection.go index c48e79f..e93a996 100644 --- a/connection.go +++ b/connection.go @@ -204,11 +204,13 @@ func (c *Connection) handleInterrupt(fuseID uint64) { } func (c *Connection) allocateInMessage() (m *buffer.InMessage) { - panic("TODO") + // TODO(jacobsa): Use a freelist. + m = new(buffer.InMessage) + return } func (c *Connection) destroyInMessage(m *buffer.InMessage) { - panic("TODO") + // TODO(jacobsa): Use a freelist. } // Read the next message from the kernel. The message must later be destroyed