Closed thehowl closed 5 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.
Looks like we need to make integration tests for housekeeper