mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
chore: fix some minor issues in comments (#5051)
Signed-off-by: queryfast <queryfast@outlook.com>
This commit is contained in:
@@ -25,8 +25,8 @@ type (
|
|||||||
ResultHandler func(sql.Result, error)
|
ResultHandler func(sql.Result, error)
|
||||||
|
|
||||||
// A BulkInserter is used to batch insert records.
|
// A BulkInserter is used to batch insert records.
|
||||||
// Postgresql 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 formated with symbol `:`.
|
// Oracle is not supported yet, because of the sql is formatted with symbol `:`.
|
||||||
BulkInserter struct {
|
BulkInserter struct {
|
||||||
executor *executors.PeriodicalExecutor
|
executor *executors.PeriodicalExecutor
|
||||||
inserter *dbInserter
|
inserter *dbInserter
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ func TestExtractValidTraceContext(t *testing.T) {
|
|||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "invalid tracestate perserves traceparent",
|
name: "invalid tracestate preserves traceparent",
|
||||||
traceparent: "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00",
|
traceparent: "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-00",
|
||||||
tracestate: "invalid$@#=invalid",
|
tracestate: "invalid$@#=invalid",
|
||||||
sc: trace.NewSpanContext(trace.SpanContextConfig{
|
sc: trace.NewSpanContext(trace.SpanContextConfig{
|
||||||
|
|||||||
@@ -1741,7 +1741,7 @@ func TestHandleSSEPing(t *testing.T) {
|
|||||||
mock.server.clientsLock.Unlock()
|
mock.server.clientsLock.Unlock()
|
||||||
|
|
||||||
assert.Equal(t, 1, clientCount, "One client should be added during the test")
|
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
|
// TestHandleSSEPing tests the automatic ping functionality in the SSE handler
|
||||||
|
|||||||
@@ -639,7 +639,7 @@ line comments
|
|||||||
以下为对应语法块解析后细带doc和comment的写法
|
以下为对应语法块解析后细带doc和comment的写法
|
||||||
``` api
|
``` api
|
||||||
// syntaxLit doc
|
// syntaxLit doc
|
||||||
syntax = "v1" // syntaxLit commnet
|
syntax = "v1" // syntaxLit comment
|
||||||
|
|
||||||
info(
|
info(
|
||||||
// kvLit doc
|
// kvLit doc
|
||||||
|
|||||||
Reference in New Issue
Block a user