diff options
Diffstat (limited to 'internal/lsp/server.go')
| -rw-r--r-- | internal/lsp/server.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/lsp/server.go b/internal/lsp/server.go index d8fdc92..3af7e1d 100644 --- a/internal/lsp/server.go +++ b/internal/lsp/server.go @@ -38,11 +38,11 @@ type Server struct { cfg appconfig.App codeActionSubsystem chatSubsystem - // LLM request stats - llmReqTotal int64 - llmSentBytesTotal int64 - llmRespTotal int64 - llmRespBytesTotal int64 + // LLM request stats — atomic to avoid taking the server-wide mu lock. + llmReqTotal atomic.Int64 + llmSentBytesTotal atomic.Int64 + llmRespTotal atomic.Int64 + llmRespBytesTotal atomic.Int64 startTime time.Time completionSubsystem configLoadOpts appconfig.LoadOptions |
