mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-10-26 13:12:12 +08:00
feat: config
This commit is contained in:
parent
3f482d6230
commit
1d1ac6e3ea
@ -2,6 +2,7 @@ package api
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
@ -215,6 +216,7 @@ func (cm *ConfigManager) restart(c *gin.Context) {
|
||||
}
|
||||
|
||||
for _, k := range changedKeys {
|
||||
fmt.Println(configMap[k].new)
|
||||
data, err := json.Marshal(configMap[k].new)
|
||||
if err != nil {
|
||||
log.ZError(c, "marshal config failed", err)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user