MCPcopy Index your code
hub / github.com/bytebase/bytebase / checkReady

Method checkReady

backend/api/lsp/handler.go:189–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187}
188
189func (h *Handler) checkReady() error {
190 h.mu.Lock()
191 defer h.mu.Unlock()
192 if h.shutDown {
193 return errors.New("server is shutting down")
194 }
195 return nil
196}
197
198func (h *Handler) checkTokenExpiry() error {
199 if !h.tokenExpiry.IsZero() && time.Now().After(h.tokenExpiry) {

Callers 1

handleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected