docs: fix comments
This commit is contained in:
parent
6d70d912a1
commit
c897cc0cc9
@ -54,10 +54,10 @@ func (pm *Manager) accessorCacheKey(from address.Address, to address.Address) st
|
|||||||
return from.String() + "->" + to.String()
|
return from.String() + "->" + to.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
// addAccessorToCache adds a channel accessor to a cache. Note that channelInfo
|
// addAccessorToCache adds a channel accessor to the cache. Note that the
|
||||||
// may be nil if the channel hasn't been created yet, but we still want to
|
// channel may not have been created yet, but we still want to reference
|
||||||
// reference the same channel accessor for a given from/to, so that all
|
// the same channel accessor for a given from/to, so that all attempts to
|
||||||
// attempts to access a channel use the same lock (the lock on the accessor)
|
// access a channel use the same lock (the lock on the accessor)
|
||||||
func (pm *Manager) addAccessorToCache(from address.Address, to address.Address) *channelAccessor {
|
func (pm *Manager) addAccessorToCache(from address.Address, to address.Address) *channelAccessor {
|
||||||
key := pm.accessorCacheKey(from, to)
|
key := pm.accessorCacheKey(from, to)
|
||||||
ca := newChannelAccessor(pm)
|
ca := newChannelAccessor(pm)
|
||||||
|
Loading…
Reference in New Issue
Block a user