fix: add OptionMap RLock to GetStatus()
This commit is contained in:
parent
d2dcd8beb3
commit
8ed175a5f8
@ -39,6 +39,8 @@ func TestStatus(c *gin.Context) {
|
|||||||
func GetStatus(c *gin.Context) {
|
func GetStatus(c *gin.Context) {
|
||||||
|
|
||||||
cs := console_setting.GetConsoleSetting()
|
cs := console_setting.GetConsoleSetting()
|
||||||
|
common.OptionMapRWMutex.RLock()
|
||||||
|
defer common.OptionMapRWMutex.RUnlock()
|
||||||
|
|
||||||
data := gin.H{
|
data := gin.H{
|
||||||
"version": common.Version,
|
"version": common.Version,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user