Description
Data race appear on nextIndex
As solution you can set mutex on Lock instead RLock
Thanks
==================
WARNING: DATA RACE
Read at 0x00c0001d8ae0 by goroutine 41:
github.com/tarantool/go-tarantool/v2/pool.(*roundRobinStrategy).nextIndex()
/Users/s.skubach/go/pkg/mod/github.com/tarantool/go-tarantool/[email protected]/pool/round_robin.go:107 +0x4c
github.com/tarantool/go-tarantool/v2/pool.(*roundRobinStrategy).GetNextConnection()
/Users/s.skubach/go/pkg/mod/github.com/tarantool/go-tarantool/[email protected]/pool/round_robin.go:80 +0x1b5
github.com/tarantool/go-tarantool/v2/pool.(*ConnectionPool).getNextConnection()
/Users/s.skubach/go/pkg/mod/github.com/tarantool/go-tarantool/[email protected]/pool/connection_pool.go:1261 +0x25d
github.com/tarantool/go-tarantool/v2/pool.(*ConnectionPool).CallTyped()
/Users/s.skubach/go/pkg/mod/github.com/tarantool/go-tarantool/[email protected]/pool/connection_pool.go:564 +0xb1