tangled
alpha
login
or
join now
evan.jarrett.net
/
at-container-registry
66
fork
atom
A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
atcr.io
docker
container
atproto
go
66
fork
atom
overview
issues
1
pulls
pipelines
update rate limit calculation
evan.jarrett.net
3 weeks ago
5b722b3c
0d00de76
verified
This commit was signed with the committer's
known signature
.
evan.jarrett.net
SSH Key Fingerprint:
SHA256:bznk0uVPp7XFOl67P0uTM1pCjf2A4ojeP/lsUE7uauQ=
2/2
lint.yaml
success
3min 43s
tests.yml
success
3min 32s
+3
-4
1 changed file
expand all
collapse all
unified
split
pkg
hold
gc
gc.go
+3
-4
pkg/hold/gc/gc.go
···
765
765
"total", len(missing))
766
766
}
767
767
768
768
-
// Throttle to avoid flooding the firehose (~100 records/sec)
769
769
-
if i < len(missing)-1 {
770
770
-
time.Sleep(10 * time.Millisecond)
771
771
-
}
768
768
+
// Throttle: ramp delay based on record index to avoid flooding relays
769
769
+
delay := max(10*time.Millisecond, time.Duration(i)*100*time.Microsecond)
770
770
+
time.Sleep(delay)
772
771
}
773
772
774
773
if result.RecordsReconciled > 0 {