Fix wrong wait type

This commit is contained in:
Andy Wang 2019-08-31 15:33:23 +01:00
parent 4861efbc50
commit 75dc91c15c
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (sb *switchboard) removeConn(connId uint32) {
// a pointer to connId is passed here so that the switchboard can reassign it
func (sb *switchboard) send(data []byte, connId *uint32) (n int, err error) {
sb.Valve.rxWait(len(data))
sb.Valve.txWait(len(data))
sb.connsM.RLock()
defer sb.connsM.RUnlock()
if sb.strategy == UNIFORM_SPREAD {