style: gofumpt linting (#15605)
This commit is contained in:
@@ -252,7 +252,7 @@ func (g queryProtoGen) startResponseType(format string, args ...any) {
|
||||
g.startRequestResponseType("response", format, args...)
|
||||
}
|
||||
|
||||
func (g queryProtoGen) startRequestResponseType(typ string, format string, args ...any) {
|
||||
func (g queryProtoGen) startRequestResponseType(typ, format string, args ...any) {
|
||||
msgTypeName := fmt.Sprintf(format, args...)
|
||||
g.msgs.F("// %s is the %s/%s %s type.", msgTypeName, g.queryServiceName(), msgTypeName, typ)
|
||||
g.msgs.F("message %s {", msgTypeName)
|
||||
|
||||
@@ -145,7 +145,7 @@ type debugIterator struct {
|
||||
debugger Debugger
|
||||
}
|
||||
|
||||
func (d debugIterator) Domain() (start []byte, end []byte) {
|
||||
func (d debugIterator) Domain() (start, end []byte) {
|
||||
start, end = d.iterator.Domain()
|
||||
d.debugger.Log(fmt.Sprintf(" DOMAIN %x -> %x", start, end))
|
||||
return start, end
|
||||
|
||||
@@ -198,7 +198,7 @@ var (
|
||||
// isNonTrivialUniqueKey checks if unique key fields are non-trivial, meaning that they
|
||||
// don't contain the full primary key. If they contain the full primary key, then
|
||||
// we can just use a regular index because there is no new unique constraint.
|
||||
func isNonTrivialUniqueKey(fields []protoreflect.Name, primaryKeyFields []protoreflect.Name) bool {
|
||||
func isNonTrivialUniqueKey(fields, primaryKeyFields []protoreflect.Name) bool {
|
||||
have := map[protoreflect.Name]bool{}
|
||||
for _, field := range fields {
|
||||
have[field] = true
|
||||
|
||||
Reference in New Issue
Block a user