1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-09-16 08:36:30 +02:00

replace strings for store prefix (#1465)

Co-authored-by: ben-toogood <bentoogood@gmail.com>
This commit is contained in:
Asim Aslam
2020-04-01 20:19:21 +01:00
committed by GitHub
parent cd3d704aa5
commit e1bc0f6288

View File

@@ -315,6 +315,7 @@ func (s *sqlStore) configure() error {
return errors.New("error compiling regex for namespace")
}
namespace = reg.ReplaceAllString(namespace, "_")
prefix = reg.ReplaceAllString(prefix, "_")
source := s.options.Nodes[0]
// check if it is a standard connection string eg: host=%s port=%d user=%s password=%s dbname=%s sslmode=disable