• Matthew Halpern's avatar
    swarm/storage: fix loop bound for database cleanup (#19085) · fbedf62f
    Matthew Halpern authored
    The current loop continuation condition is always true as a uint8
    is always being checked whether it is less than 255 (its maximum
    value). Since the loop starts with the value 1, the loop termination
    can be guarranteed to exit once the value overflows to 0.
    fbedf62f
ldbstore.go 27.2 KB