osuripple / cheesegull

CheeseGull is an osu! mirror developed for Ripple.
MIT License
14 stars 8 forks source link

negative WaitGroup counter #6

Closed thehowl closed 5 years ago

thehowl commented 6 years ago

Looks like we need to make integration tests for housekeeper

thehowl commented 6 years ago

Probably the way beatmaps are downloaded should be restructured completely.

An idea that popped up in my mind is a system that keeps track of all the beatmaps currently being downloaded through a map[CachedBeatmap]WriteCloner. WriteCloner would be an io.Writer as well as a Clone() io.Reader method, which generates a io.Reader which already has all the bytes currently written to into the WriteCloner, and furthermore it will also receive the bytes written to WriteCloner after the Clone.

This way it should also be easier to implement streaming from the osu! API into many connections.

thehowl commented 5 years ago

fixed