Skip to content

Commit ff96f64

Browse files
committed
Increment fixed rate limit to 1MB.
1 parent dcf7e7c commit ff96f64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/csp/chan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func (s Sender) Send(ctx context.Context, v Value) (casm.Future, capnp.ReleaseFu
208208
// for a given sender.
209209
func (s Sender) NewStream(ctx context.Context) SendStream {
210210
sender := channel.Sender(s)
211-
sender.SetFlowLimiter(flowcontrol.NewFixedLimiter(1024)) // TODO: use BBR once scheduler bug is fixed
211+
sender.SetFlowLimiter(flowcontrol.NewFixedLimiter(1e6)) // TODO: use BBR once scheduler bug is fixed
212212

213213
return SendStream{
214214
ctx: ctx,

pkg/pubsub/topic.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func (t Topic) Publish(ctx context.Context, b []byte) error {
5757
// FlowLimiter.
5858
func (t Topic) NewStream(ctx context.Context) Stream {
5959
// TODO: use BBR once scheduler bug is fixed
60-
api.Topic(t).SetFlowLimiter(flowcontrol.NewFixedLimiter(1024))
60+
api.Topic(t).SetFlowLimiter(flowcontrol.NewFixedLimiter(1e6))
6161

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

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

240240
t.log.Debug("registered subscription handler")
241241
defer t.log.Debug("unregistered subscription handler")

0 commit comments

Comments
 (0)