persist saves the current in-memory config to disk.
(c *gin.Context)
| 398 | |
| 399 | // persist saves the current in-memory config to disk. |
| 400 | func (h *Handler) persist(c *gin.Context) bool { |
| 401 | h.mu.Lock() |
| 402 | defer h.mu.Unlock() |
| 403 | return h.persistLocked(c) |
| 404 | } |
| 405 | |
| 406 | // persistLocked saves the current in-memory config to disk. |
| 407 | // It expects the caller to hold h.mu. |
no test coverage detected