Skip to content

Commit

Permalink
chore: make swagger format golines
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 committed Dec 10, 2024
1 parent caefb8c commit 3ddf3a6
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 28 deletions.
20 changes: 16 additions & 4 deletions internal/utxorpc/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ func (s *queryServiceServer) ReadUtxos(
if isAllZeroes {
// No actual datum; set Datum to nil to omit it
audc.Cardano.Datum = nil
log.Print("Datum Hash is all zeroes; setting Datum to nil")
log.Print(
"Datum Hash is all zeroes; setting Datum to nil",
)
} else {
log.Printf("Datum Hash present: %x", audc.Cardano.Datum.Hash)
}
Expand All @@ -167,7 +169,11 @@ func (s *queryServiceServer) ReadUtxos(
Slot: point.Slot,
Hash: point.Hash,
}
log.Printf("Prepared response with LedgerTip: Slot=%v, Hash=%v", resp.LedgerTip.Slot, resp.LedgerTip.Hash)
log.Printf(
"Prepared response with LedgerTip: Slot=%v, Hash=%v",
resp.LedgerTip.Slot,
resp.LedgerTip.Hash,
)
log.Printf("Final response: %v", resp)
return connect.NewResponse(resp), nil
}
Expand Down Expand Up @@ -195,7 +201,10 @@ func (s *queryServiceServer) SearchUtxos(
var addr common.Address
err := addr.UnmarshalCBOR(exactAddressBytes)
if err != nil {
return nil, fmt.Errorf("failed to decode exact address: %w", err)
return nil, fmt.Errorf(
"failed to decode exact address: %w",
err,
)
}
addresses = append(addresses, addr)
}
Expand All @@ -219,7 +228,10 @@ func (s *queryServiceServer) SearchUtxos(
var delegationAddr common.Address
err := delegationAddr.UnmarshalCBOR(delegationPart)
if err != nil {
return nil, fmt.Errorf("failed to decode delegation part: %w", err)
return nil, fmt.Errorf(
"failed to decode delegation part: %w",
err,
)
}
addresses = append(addresses, delegationAddr)
}
Expand Down
13 changes: 11 additions & 2 deletions internal/utxorpc/submit.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,20 @@ func (s *submitServiceServer) WaitForTx(

// Log the transaction references at debug level
for i, r := range ref {
logger.Debug("Transaction reference", "index", i, "ref", hex.EncodeToString(r))
logger.Debug(
"Transaction reference",
"index",
i,
"ref",
hex.EncodeToString(r),
)
}

// Setup event channel
eventChan := make(chan event.Event, 100) // Increased buffer size for high-throughput
eventChan := make(
chan event.Event,
100,
) // Increased buffer size for high-throughput
connCfg := node.ConnectionConfig{
ChainSyncEventChan: eventChan,
}
Expand Down
4 changes: 2 additions & 2 deletions openapi/api_default.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions openapi/api_localstatequery.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions openapi/api_localtxmonitor.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions openapi/api_localtxsubmission.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ddf3a6

Please sign in to comment.