From c897cc0cc9ba0aec945be5e5e699d1bfa337cd0c Mon Sep 17 00:00:00 2001 From: Dirk McCormick Date: Tue, 4 Aug 2020 17:28:06 -0400 Subject: [PATCH] docs: fix comments --- paychmgr/accessorcache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paychmgr/accessorcache.go b/paychmgr/accessorcache.go index 11f9d3bc9..43223200d 100644 --- a/paychmgr/accessorcache.go +++ b/paychmgr/accessorcache.go @@ -54,10 +54,10 @@ func (pm *Manager) accessorCacheKey(from address.Address, to address.Address) st return from.String() + "->" + to.String() } -// addAccessorToCache adds a channel accessor to a cache. Note that channelInfo -// may be nil if the channel hasn't been created yet, but we still want to -// reference the same channel accessor for a given from/to, so that all -// attempts to access a channel use the same lock (the lock on the accessor) +// addAccessorToCache adds a channel accessor to the cache. Note that the +// channel may not have been created yet, but we still want to reference +// the same channel accessor for a given from/to, so that all attempts to +// access a channel use the same lock (the lock on the accessor) func (pm *Manager) addAccessorToCache(from address.Address, to address.Address) *channelAccessor { key := pm.accessorCacheKey(from, to) ca := newChannelAccessor(pm)