Skip to content

Commit

Permalink
Take a size. (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelquigley committed Aug 24, 2021
1 parent 417dc81 commit ffdc817
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion txportal.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package dilithium

import (
"github.com/emirpasic/gods/trees/btree"
"sync"
)

// TxAlgorithm is an abstraction of an extensible flow-control implementation, which can be plugged into a TxPortal
// instance.
//
type TxAlgorithm interface {
Ready()
Ready(int)
Tx(int)
Success(int)
DuplicateAck()
Expand All @@ -24,6 +25,7 @@ type TxAlgorithm interface {
//
type TxPortal struct {
lock *sync.Mutex
tree *btree.Tree
transport Transport
alg TxAlgorithm
monitor *TxMonitor
Expand Down
2 changes: 1 addition & 1 deletion westworld.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func NewWestworldAlgorithm(pf *WestworldProfile, txPortal *TxPortal) TxAlgorithm
return &WestworldAlgorithm{pf, txPortal}
}

func (self *WestworldAlgorithm) Ready() {
func (self *WestworldAlgorithm) Ready(size int) {
}

func (self *WestworldAlgorithm) Tx(size int) {
Expand Down

0 comments on commit ffdc817

Please sign in to comment.