Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make swagger format golines #312

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading