Skip to content

Commit 9fc8675

Browse files
Remove toolchain from off_chain_data
And a very minor code change to exploit new standard library functions. Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
1 parent 099f52b commit 9fc8675

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

off_chain_data/application-go/app.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ package main
33
import (
44
"errors"
55
"fmt"
6+
"maps"
67
"os"
8+
"slices"
79
"strings"
810

911
"google.golang.org/grpc"
@@ -55,12 +57,6 @@ func printUsage() {
5557
}
5658

5759
func availableCommands() string {
58-
result := make([]string, len(allCommands))
59-
i := 0
60-
for command := range allCommands {
61-
result[i] = command
62-
i++
63-
}
64-
65-
return strings.Join(result, ", ")
60+
commandNames := slices.Collect(maps.Keys(allCommands))
61+
return strings.Join(commandNames, ", ")
6662
}

off_chain_data/application-go/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ module offchaindata
22

33
go 1.23.0
44

5-
toolchain go1.24.5
6-
75
require (
86
github.com/google/uuid v1.6.0
97
github.com/hyperledger/fabric-gateway v1.8.0

0 commit comments

Comments
 (0)