mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-15 05:04:27 +08:00
Go: fix env variables (#18032)
Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -82,7 +82,7 @@ func NewMemoryHandler(memoryService *service.MemoryService) *MemoryHandler {
|
||||
func (h *MemoryHandler) CreateMemory(c *gin.Context) {
|
||||
// Check if API timing is enabled
|
||||
// If RAGFLOW_API_TIMING environment variable is set, request processing time will be logged
|
||||
timingEnabled := common.GetEnv(common.EnvRAGFlowApiTiming)
|
||||
timingEnabled := common.GetEnv(common.EnvRAGFlowAPITiming)
|
||||
var tStart time.Time
|
||||
if timingEnabled != "" {
|
||||
tStart = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user