Skip to content

Commit 5ec867c

Browse files
authored
fix: fmt.Errorf format %s has arg metadataCount of wrong type int (#566)
1 parent 75b66b3 commit 5ec867c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hub/hub_base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func (h *hubBase) executeCommandScan(connectionName, table string, queryTimestam
354354
return newInMemoryIterator(connectionName, res, queryTimestamp), nil
355355
case constants.ForeignTableScanMetadata, constants.LegacyCommandTableScanMetadata:
356356
if metadataCount := len(h.queryTiming.scanMetadata); metadataCount > 1 {
357-
return nil, fmt.Errorf(" executeCommandScan for table '%s' - %d summaries in metadata store - there should only be 1. ", metadataCount, table)
357+
return nil, fmt.Errorf(" executeCommandScan for table '%s' - %d summaries in metadata store - there should only be 1. ", table, metadataCount)
358358
}
359359

360360
res := &QueryResult{}

0 commit comments

Comments
 (0)