Skip to content

Commit

Permalink
Readd SetPriceTableObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
metacertain committed Feb 17, 2021
1 parent 4f0488b commit 4aff246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ func NewBee(addr string, swarmAddress swarm.Address, publicKey ecdsa.PublicKey,
}
pricer := pricer.New(logger, stateStore, kad, swarmAddress, 1000000000)
pricing := pricing.New(p2ps, logger, paymentThreshold, pricer)
pricing.SetPriceTableObserver(pricer)

if err = p2ps.AddProtocol(pricing.Protocol()); err != nil {
return nil, fmt.Errorf("pricing service: %w", err)
Expand Down

0 comments on commit 4aff246

Please sign in to comment.