chore: fix some minor issues in comments (#5051)

Signed-off-by: queryfast <queryfast@outlook.com>
This commit is contained in:
queryfast
2025-08-05 12:13:44 +08:00
committed by GitHub
parent 569c00ad09
commit d9df08b079
4 changed files with 5 additions and 5 deletions

View File

@@ -25,8 +25,8 @@ type (
ResultHandler func(sql.Result, error)
// A BulkInserter is used to batch insert records.
// Postgresql is not supported yet, because of the sql is formated with symbol `$`.
// Oracle is not supported yet, because of the sql is formated with symbol `:`.
// Postgresql is not supported yet, because of the sql is formatted with symbol `$`.
// Oracle is not supported yet, because of the sql is formatted with symbol `:`.
BulkInserter struct {
executor *executors.PeriodicalExecutor
inserter *dbInserter

View File

@@ -82,7 +82,7 @@ func TestExtractValidTraceContext(t *testing.T) {
}),
},
{
name: "invalid tracestate perserves traceparent",
name: "invalid tracestate preserves traceparent",
traceparent: "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00",
tracestate: "invalid$@#=invalid",
sc: trace.NewSpanContext(trace.SpanContextConfig{

View File

@@ -1741,7 +1741,7 @@ func TestHandleSSEPing(t *testing.T) {
mock.server.clientsLock.Unlock()
assert.Equal(t, 1, clientCount, "One client should be added during the test")
assert.Equal(t, 0, finalClientCount, "Client should be cleaned up after context cancelation")
assert.Equal(t, 0, finalClientCount, "Client should be cleaned up after context cancellation")
}
// TestHandleSSEPing tests the automatic ping functionality in the SSE handler

View File

@@ -639,7 +639,7 @@ line comments
以下为对应语法块解析后细带doc和comment的写法
``` api
// syntaxLit doc
syntax = "v1" // syntaxLit commnet
syntax = "v1" // syntaxLit comment
info(
// kvLit doc