Pointer receivers for phony.Block

This commit is contained in:
Neil Alexander 2019-08-28 12:26:44 +01:00
parent 5d7d84f827
commit 607c906820
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
4 changed files with 9 additions and 9 deletions

View file

@ -176,7 +176,7 @@ func (c *Core) Start(nc *config.NodeConfig, log *log.Logger) (*config.NodeState,
c.config.Mutex.RLock()
if c.config.Current.SwitchOptions.MaxTotalQueueSize >= SwitchQueueTotalMinSize {
phony.Block(c.switchTable, func() {
phony.Block(&c.switchTable, func() {
c.switchTable.queues.totalMaxSize = c.config.Current.SwitchOptions.MaxTotalQueueSize
})
}