taevas

Results 9 comments of taevas

@huyansheng3 数字固定对随机性并没有什么影响呀。比如剩下 1,4,3,每个概率就是 1 / 3。肯定是等概率的呀,怎么会有随机性不够的说法。

View Google Translate request and replace query paramters. I don't know what is the meaning of the parameters, but it's work. ``` client:t sl:en tl:zh-CN hl:zh-CN dt:at dt:bd dt:ex dt:ld...

https://github.com/dudleycarr/nsqjs/blob/main/lib/readerrdy.js#L593

``` const RRL = require('./lib/roundrobinlist'); const list = new RRL([1, 2, 3]); console.log(list.next(2)); // [ 1, 2 ] console.log(list.next(2)); // [ 3 ] ``` `roundrobinlist.next` is incomplete actually.

Only when the perConnectionMax is 0, it will run here, but this code always rebalances within 50 milliseconds and cannot be observed.

When the current_state_name is TRY_ONE, max is 1 and inFlight() can be 3.

I have no global perspective now. Wait till I figure it out.

@jonathanong The Chrome browser initiated this request with `Accept-Encoding: identity;q=1, *;q=0`. This is not my delusion, but koa-compress forced a gzip return. identity is also a function > `identity` Indicates...

Let me describe the scenario I encountered. I added `ctx.compress = true;` to the route `/path/to/:filename` to support compression. At first, only images were handled, and later videos were adapted....