renamed client and package to relay

This commit is contained in:
херетик
2023-01-29 11:33:20 +00:00
parent effc44030c
commit a14e7883dc
25 changed files with 25 additions and 25 deletions

View File

@@ -0,0 +1,23 @@
package relay
import (
"time"
"git-indra.lan/indra-labs/indra/pkg/onion/layers/delay"
"git-indra.lan/indra-labs/indra/pkg/types"
"git-indra.lan/indra-labs/indra/pkg/util/slice"
)
func (en *Engine) delay(on *delay.Layer, b slice.Bytes,
c *slice.Cursor, prev types.Onion) {
// this is a message to hold the message in the buffer until a duration
// elapses. The accounting for the remainder of the message adds a
// factor to the effective byte consumption in accordance with the time
// to be stored.
// todo: accounting
select {
case <-time.After(on.Duration):
}
en.handleMessage(BudgeUp(b, *c), on)
}