Skip to content

Commit 74e2028

Browse files
authored
perf(cmd): align struct fields for memory (#1219)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 682253c commit 74e2028

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

cmd/common/cmdline.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ type GlobalFlags struct {
2626
Flagset *flag.FlagSet
2727
Socket string
2828
Address string
29-
UseTls bool
30-
NtnProto bool
3129
Network string
3230
NetworkMagic int
31+
UseTls bool
32+
NtnProto bool
3333
}
3434

3535
func NewGlobalFlags() *GlobalFlags {

cmd/gouroboros/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ type globalFlags struct {
2828
flagset *flag.FlagSet
2929
socket string
3030
address string
31-
useTls bool
32-
ntnProto bool
3331
network string
3432
networkMagic int
33+
useTls bool
34+
ntnProto bool
3535
}
3636

3737
func newGlobalFlags() *globalFlags {

cmd/gouroboros/query.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ func testQuery(f *globalFlags) {
308308
case "proposed-protocol-params-updates":
309309
proposedUpdates, err := o.LocalStateQuery().Client.GetProposedProtocolParamsUpdates()
310310
if err != nil {
311-
fmt.Printf("ERROR: failure querying proposed protocol params updates: %s\n", err)
311+
fmt.Printf(
312+
"ERROR: failure querying proposed protocol params updates: %s\n",
313+
err,
314+
)
312315
os.Exit(1)
313316
}
314317
fmt.Printf("proposed-protocol-params-updates: %v\n", *proposedUpdates)

0 commit comments

Comments
 (0)