Skip to content

Commit

Permalink
Increment fixed rate limit to 1MB.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Jan 15, 2023
1 parent dcf7e7c commit ff96f64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/csp/chan.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (s Sender) Send(ctx context.Context, v Value) (casm.Future, capnp.ReleaseFu
// for a given sender.
func (s Sender) NewStream(ctx context.Context) SendStream {
sender := channel.Sender(s)
sender.SetFlowLimiter(flowcontrol.NewFixedLimiter(1024)) // TODO: use BBR once scheduler bug is fixed
sender.SetFlowLimiter(flowcontrol.NewFixedLimiter(1e6)) // TODO: use BBR once scheduler bug is fixed

return SendStream{
ctx: ctx,
Expand Down
4 changes: 2 additions & 2 deletions pkg/pubsub/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (t Topic) Publish(ctx context.Context, b []byte) error {
// FlowLimiter.
func (t Topic) NewStream(ctx context.Context) Stream {
// TODO: use BBR once scheduler bug is fixed
api.Topic(t).SetFlowLimiter(flowcontrol.NewFixedLimiter(1024))
api.Topic(t).SetFlowLimiter(flowcontrol.NewFixedLimiter(1e6))

cherr := make(chan error, 1)
done := make(chan struct{})
Expand Down Expand Up @@ -235,7 +235,7 @@ func (t topicServer) Subscribe(ctx context.Context, call MethodSubscribe) error
defer sub.Cancel()

sender := call.Args().Chan()
sender.SetFlowLimiter(flowcontrol.NewFixedLimiter(1024)) // TODO: use BBR once scheduler bug is fixed
sender.SetFlowLimiter(flowcontrol.NewFixedLimiter(1e6)) // TODO: use BBR once scheduler bug is fixed

t.log.Debug("registered subscription handler")
defer t.log.Debug("unregistered subscription handler")
Expand Down

0 comments on commit ff96f64

Please sign in to comment.