KaymeKaydex / go-vshard-router

go vshard-router implementation for tarantool
MIT License
21 stars 3 forks source link

BucketDiscovery: do not spawn new goroutines #70

Closed nurzhan-saktaganov closed 2 months ago

nurzhan-saktaganov commented 2 months ago

BucketDiscovery spawns several goroutines and calls on each of them BucketStat. We can achieve the same behavior without spawning new goroutines, just split BuckerStat into bucketStatAsync and bucketStatWait stages/parts.