Skip to content

Commit ce082cf

Browse files
committed
Lint
1 parent b207004 commit ce082cf

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

framework/components/blockchain/canton.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ import (
2121
// - http://[PARTICIPANT].wallet.localhost:[PORT] -> Wallet API
2222
// - http://[PARTICIPANT].http-health-check.localhost:[PORT] -> HTTP Health Check
2323
// - grpc://[PARTICIPANT].grpc-health-check.localhost:[PORT] -> gRPC Health Check
24+
//
2425
// To access a participant's endpoints, replace [PARTICIPANT] with the participant's identifier, i.e. `sv`, `participant01`, `participant02`, ...
2526
//
2627
// Additionally, the global Scan service is accessible via:
2728
// - http://scan.localhost:[PORT]/api/scan -> Scan API
2829
// - http://scan.localhost:[PORT]/registry -> Scan Registry
30+
//
2931
// The PORT is the same for all routes and is specified in the input parameters.
3032
//
3133
// Note: The maximum number of validators supported is 99, participants are numbered starting from `participant01` through `participant99`.
@@ -51,7 +53,7 @@ func newCanton(ctx context.Context, in *Input) (*Output, error) {
5153
}
5254

5355
// Set up Canton container
54-
cantonReq := canton.CantonContainerRequest(dockerNetwork.Name, in.NumberOfCantonValidators, in.Image)
56+
cantonReq := canton.ContainerRequest(dockerNetwork.Name, in.NumberOfCantonValidators, in.Image)
5557
_, err = testcontainers.GenericContainer(ctx, testcontainers.GenericContainerRequest{
5658
ContainerRequest: cantonReq,
5759
Started: true,

framework/components/blockchain/canton/canton.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
// Canton Defaults
1414
const (
1515
SpliceVersion = "0.5.3"
16-
CantonImage = "ghcr.io/digital-asset/decentralized-canton-sync/docker/canton"
16+
Image = "ghcr.io/digital-asset/decentralized-canton-sync/docker/canton"
1717
)
1818

1919
// JWT Auth defaults
@@ -309,7 +309,7 @@ canton.participants.participant%[1]d = ${_participant} {
309309
return config
310310
}
311311

312-
func CantonContainerRequest(
312+
func ContainerRequest(
313313
networkName string,
314314
numberOfValidators int,
315315
spliceVersion string, // optional, will default to SpliceVersion if empty
@@ -319,7 +319,7 @@ func CantonContainerRequest(
319319
}
320320
cantonContainerName := framework.DefaultTCName("canton")
321321
cantonReq := testcontainers.ContainerRequest{
322-
Image: fmt.Sprintf("%s:%s", CantonImage, spliceVersion),
322+
Image: fmt.Sprintf("%s:%s", Image, spliceVersion),
323323
Name: cantonContainerName,
324324
Networks: []string{networkName},
325325
NetworkAliases: map[string][]string{

0 commit comments

Comments
 (0)