Skip to content

Commit fb65003

Browse files
committed
fix(env): refactor AgentID assignment for clarity in IsAgentMode determination
1 parent 9f10888 commit fb65003

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

core/env/env.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ var (
3333
NoDebugKey = " /* nD */"
3434
Executable = ""
3535
IsThreadChild = cast.ToBool(os.Getenv("SLING_THREAD_CHILD"))
36-
IsAgentMode = os.Getenv("SLING_AGENT_ID") != ""
36+
AgentID = os.Getenv("SLING_AGENT_ID")
37+
IsAgentMode = AgentID != ""
3738
GetOAuthMap = func() map[string]map[string]any { return map[string]map[string]any{} }
3839
setupOtel = func() {}
3940
)

0 commit comments

Comments
 (0)