Skip to content

Commit

Permalink
feat(prospective-parachains) implements fanin operation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDDHM committed Jan 8, 2025
1 parent 2d038e6 commit a67abba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions dot/parachain/statement-distribution/statement_distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var logger = log.NewFromGlobal(log.AddContext("pkg", "statement-distribution"))

type StatementDistribution struct {
reputationAggregator parachainutil.ReputationAggregator
SubSystemToOverseer chan<- any
SubSystemToOverseer chan<- parachainutil.NetworkBridgeTxMessage
}

func (s *StatementDistribution) Run(
Expand All @@ -36,11 +36,11 @@ func (s *StatementDistribution) Run(
if err != nil {
logger.Errorf("error processing overseer message: %v", err)
}
case _ = <-v2CommChannel:
panic("Not Implemented")
case _ = <-receiverRespCh:
panic("Not Implemented")
case _ = <-retryReqCh:
// case _ = <-v2CommChannel:
// panic("Not Implemented")
// case _ = <-receiverRespCh:
// panic("Not Implemented")
// case _ = <-retryReqCh:
logger.Infof("received retry request, no action taken")
case <-reputationDelay.C:
// Trigger reputation aggregator logic
Expand Down
2 changes: 1 addition & 1 deletion dot/parachain/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func NewReputationAggregator(sendImmediatelyIf func(rep UnifiedReputationChange)
}

// Send sends the accumulated reputation changes in a batch and clears the state.
func (r *ReputationAggregator) Send(overseerCh chan<- any) {
func (r *ReputationAggregator) Send(overseerCh chan<- NetworkBridgeTxMessage) {
r.mu.Lock()
defer r.mu.Unlock()

Expand Down

0 comments on commit a67abba

Please sign in to comment.