tjhowse on Nostr: Me: "Why is this test case running so slow?!? There are five concurrent workers, it ...
Me: "Why is this test case running so slow?!? There are five concurrent workers, it should be able to make parallel requests and blow through the job queue in under a second."
Also me, a few days ago: "I should be a courteous API consumer, so: `Ratelimiter: rate.NewLimiter(rate.Every(1*time.Second), 1),` "
#golang #software
Published at
2024-07-20 03:16:18Event JSON
{
"id": "94b9049979cf69a0709b8f6e8c91f417b6d99b4e9f012ade9888457b74172df3",
"pubkey": "6f25c0e1e351a6f3abd45675b5e515acb8b44ea46b9cc7ec30ada1ab4aed09e7",
"created_at": 1721445378,
"kind": 1,
"tags": [
[
"proxy",
"https://howse.social/@tj/112816644356178444",
"web"
],
[
"t",
"software"
],
[
"t",
"golang"
],
[
"proxy",
"https://howse.social/users/tj/statuses/112816644356178444",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://howse.social/users/tj/statuses/112816644356178444",
"pink.momostr"
],
[
"-"
]
],
"content": "Me: \"Why is this test case running so slow?!? There are five concurrent workers, it should be able to make parallel requests and blow through the job queue in under a second.\"\n\nAlso me, a few days ago: \"I should be a courteous API consumer, so: `Ratelimiter: rate.NewLimiter(rate.Every(1*time.Second), 1),` \"\n\n#golang #software",
"sig": "2e7fb3baf7e82510aa5b86b16fb6b4f0c3bbb37bf274c7e27d09ec1ac13f1d295580f45640f3bb072ec20fe76059cab464610424540c574e4f041662aa84191b"
}