container-registry / harbor-satellite

Harbor Satellite (WIP)
Apache License 2.0
9 stars 2 forks source link

Http fetcher #19

Closed OneFlyingBanana closed 1 month ago

OneFlyingBanana commented 2 months ago

I'm encoutering a small problem here :

IIRC the idea of hash comparison was to skip the whole unpacking of the data to win some time. But the problem I'm encountering is that in the received data I have a couple fields such as star_count and pull_count, which means the hash changes somewhat frequently (every time someone stars of pulls that image) So should I ignore this (maybe if we expect our end users to not use public images with star and pull counts) or take the extra step of selecting specific data points (and thus sort of going against the original idea of why we use hash maps) ?