Set up multiple conns in config

This commit is contained in:
lash
2025-01-19 18:26:39 +00:00
parent 9b3dad579b
commit 60ff1b0ab3
2 changed files with 63 additions and 14 deletions

View File

@@ -27,7 +27,7 @@ func NewConns() Conns {
return c
}
func (c Conns) Set(typ int8, conn ConnData) {
func (c Conns) Set(conn ConnData, typ int8) {
if typ < 0 || typ >= _STORETYPE_MAX {
panic(fmt.Errorf("invalid store type: %d", typ))
}