From 2b20d7a5557c5c2898900d43f7ffc57bf8c7619e Mon Sep 17 00:00:00 2001 From: Mikkel Krautz Date: Sat, 14 May 2011 11:45:19 +0200 Subject: [PATCH] Fix sessionpool comments. --- pkg/sessionpool/sessionpool.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/sessionpool/sessionpool.go b/pkg/sessionpool/sessionpool.go index a0091b7..9c0e060 100644 --- a/pkg/sessionpool/sessionpool.go +++ b/pkg/sessionpool/sessionpool.go @@ -32,7 +32,6 @@ func New() (pool *SessionPool) { // the SessionPool checks whether the ID being reclaimed // is in its list of used IDs. If this is not the case, // the program will panic. -// panic. func (pool *SessionPool) EnableUseTracking() { if len(pool.unused) != 0 || pool.cur != 0 { panic("Attempt to enable use tracking on an existing SessionPool.") @@ -41,7 +40,7 @@ func (pool *SessionPool) EnableUseTracking() { } // Get a new session ID from the SessionPool. -// Must be reclaimed using Reclaim() when done. +// Must be reclaimed using Reclaim() when done using it. func (pool *SessionPool) Get() (id uint32) { pool.mutex.Lock() defer pool.mutex.Unlock()