Skip to content

Commit 3a31c02

Browse files
authored
chore: make swagger format golines (#312)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent caefb8c commit 3a31c02

File tree

6 files changed

+49
-28
lines changed

6 files changed

+49
-28
lines changed

internal/utxorpc/query.go

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ func (s *queryServiceServer) ReadUtxos(
153153
if isAllZeroes {
154154
// No actual datum; set Datum to nil to omit it
155155
audc.Cardano.Datum = nil
156-
log.Print("Datum Hash is all zeroes; setting Datum to nil")
156+
log.Print(
157+
"Datum Hash is all zeroes; setting Datum to nil",
158+
)
157159
} else {
158160
log.Printf("Datum Hash present: %x", audc.Cardano.Datum.Hash)
159161
}
@@ -167,7 +169,11 @@ func (s *queryServiceServer) ReadUtxos(
167169
Slot: point.Slot,
168170
Hash: point.Hash,
169171
}
170-
log.Printf("Prepared response with LedgerTip: Slot=%v, Hash=%v", resp.LedgerTip.Slot, resp.LedgerTip.Hash)
172+
log.Printf(
173+
"Prepared response with LedgerTip: Slot=%v, Hash=%v",
174+
resp.LedgerTip.Slot,
175+
resp.LedgerTip.Hash,
176+
)
171177
log.Printf("Final response: %v", resp)
172178
return connect.NewResponse(resp), nil
173179
}
@@ -195,7 +201,10 @@ func (s *queryServiceServer) SearchUtxos(
195201
var addr common.Address
196202
err := addr.UnmarshalCBOR(exactAddressBytes)
197203
if err != nil {
198-
return nil, fmt.Errorf("failed to decode exact address: %w", err)
204+
return nil, fmt.Errorf(
205+
"failed to decode exact address: %w",
206+
err,
207+
)
199208
}
200209
addresses = append(addresses, addr)
201210
}
@@ -219,7 +228,10 @@ func (s *queryServiceServer) SearchUtxos(
219228
var delegationAddr common.Address
220229
err := delegationAddr.UnmarshalCBOR(delegationPart)
221230
if err != nil {
222-
return nil, fmt.Errorf("failed to decode delegation part: %w", err)
231+
return nil, fmt.Errorf(
232+
"failed to decode delegation part: %w",
233+
err,
234+
)
223235
}
224236
addresses = append(addresses, delegationAddr)
225237
}

internal/utxorpc/submit.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,20 @@ func (s *submitServiceServer) WaitForTx(
116116

117117
// Log the transaction references at debug level
118118
for i, r := range ref {
119-
logger.Debug("Transaction reference", "index", i, "ref", hex.EncodeToString(r))
119+
logger.Debug(
120+
"Transaction reference",
121+
"index",
122+
i,
123+
"ref",
124+
hex.EncodeToString(r),
125+
)
120126
}
121127

122128
// Setup event channel
123-
eventChan := make(chan event.Event, 100) // Increased buffer size for high-throughput
129+
eventChan := make(
130+
chan event.Event,
131+
100,
132+
) // Increased buffer size for high-throughput
124133
connCfg := node.ConnectionConfig{
125134
ChainSyncEventChan: eventChan,
126135
}

openapi/api_default.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/api_localstatequery.go

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/api_localtxmonitor.go

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/api_localtxsubmission.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)