From d7c52fc31e233e97d80a5340cf2a1c451ae465af Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 22 Aug 2025 23:39:56 +0300 Subject: remove busy check --- internal/lsp/server.go | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'internal/lsp/server.go') diff --git a/internal/lsp/server.go b/internal/lsp/server.go index ea13456..7bc52c1 100644 --- a/internal/lsp/server.go +++ b/internal/lsp/server.go @@ -31,8 +31,6 @@ type Server struct { triggerChars []string // If set, used as the LSP coding temperature for all LLM calls codingTemperature *float64 - // Concurrency guard: prevent overlapping LLM requests (esp. completions) - llmBusy bool // LLM request stats llmReqTotal int64 llmSentBytesTotal int64 @@ -99,25 +97,6 @@ func NewServer(r io.Reader, w io.Writer, logger *log.Logger, opts ServerOptions) return s } -// tryStartLLM attempts to mark the LLM as busy. Returns true when it acquired -// the guard; false if another LLM request is already running. -func (s *Server) tryStartLLM() bool { - s.mu.Lock() - defer s.mu.Unlock() - if s.llmBusy { - return false - } - s.llmBusy = true - return true -} - -// endLLM releases the busy guard for LLM requests. -func (s *Server) endLLM() { - s.mu.Lock() - s.llmBusy = false - s.mu.Unlock() -} - func (s *Server) Run() error { for { body, err := s.readMessage() -- cgit v1.2.3