Skip to content

Commit a7b963a

Browse files
committed
Shorten upstream variables.
1 parent d1b4b0f commit a7b963a

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/push-docker-general-service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ jobs:
5858
context: ./general-service
5959
file: ./general-service/Dockerfile
6060
push: true
61-
tags: ghcr.io/qubic/qubic-aggregation-general-service:${{ steps.extract.outputs.version }}
61+
tags: ghcr.io/qubic/qubic-aggregation-service:${{ steps.extract.outputs.version }}

general-service/cmd/general-service/main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func main() {
3434
}
3535
}
3636

37-
const confPrefix = "QUBIC_AGGREGATION_GENERAL_SERVICE"
37+
const confPrefix = "QUBIC_AGGREGATION_SERVICE"
3838

3939
func run(logger *zap.SugaredLogger) error {
4040

@@ -59,21 +59,21 @@ func run(logger *zap.SugaredLogger) error {
5959

6060
fmt.Println(conf.String(&cfg))
6161

62-
liveServiceGrpcConn, err := grpcclient.NewConnection(cfg.Upstream.QubicHttpHost)
62+
liveServiceGrpcConn, err := grpcclient.NewConnection(cfg.Upstream.QubicHttpUrl)
6363
if err != nil {
6464
return fmt.Errorf("creating live service client connection: %w", err)
6565
}
6666
defer liveServiceGrpcConn.Close()
6767
liveClient := clients.NewLiveServiceClient(liveServiceGrpcConn, logger.Named("live-service"))
6868

69-
queryServiceGrpcConn, err := grpcclient.NewConnection(cfg.Upstream.ArchiveQueryServiceHost)
69+
queryServiceGrpcConn, err := grpcclient.NewConnection(cfg.Upstream.QueryServiceUrl)
7070
if err != nil {
7171
return fmt.Errorf("creating query service client connection: %w", err)
7272
}
7373
defer queryServiceGrpcConn.Close()
7474
queryClient := clients.NewQueryServiceClient(queryServiceGrpcConn, logger.Named("query-service"))
7575

76-
statusServiceGrpcConn, err := grpcclient.NewConnection(cfg.Upstream.StatusServiceHost)
76+
statusServiceGrpcConn, err := grpcclient.NewConnection(cfg.Upstream.StatusServiceUrl)
7777
if err != nil {
7878
return fmt.Errorf("creating status service client connection: %w", err)
7979
}

general-service/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ require (
1111
github.com/qubic/archive-query-service/v2 v2.0.0-20260218114203-dee9e270b172
1212
github.com/qubic/go-data-publisher/status-service v1.3.3
1313
github.com/qubic/go-node-connector v0.17.0
14-
github.com/qubic/qubic-aggregation/shared v0.1.0
14+
github.com/qubic/qubic-aggregation/shared v0.1.1
1515
github.com/qubic/qubic-http v0.9.1
1616
github.com/stretchr/testify v1.11.1
1717
go.uber.org/mock v0.6.0
1818
go.uber.org/zap v1.27.1
19+
golang.org/x/sync v0.19.0
1920
google.golang.org/genproto/googleapis/api v0.0.0-20260223185530-2f722ef697dc
2021
google.golang.org/grpc v1.79.1
2122
google.golang.org/protobuf v1.36.11
@@ -44,7 +45,6 @@ require (
4445
go.yaml.in/yaml/v3 v3.0.4 // indirect
4546
golang.org/x/crypto v0.47.0 // indirect
4647
golang.org/x/net v0.49.0 // indirect
47-
golang.org/x/sync v0.19.0 // indirect
4848
golang.org/x/sys v0.40.0 // indirect
4949
golang.org/x/text v0.34.0 // indirect
5050
google.golang.org/genproto/googleapis/rpc v0.0.0-20260217215200-42d3e9bedb6d // indirect

general-service/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ github.com/qubic/go-node-connector v0.17.0 h1:ifsqODfO3vw16av0GGQBcq8qgcQXfYD1Y4
7070
github.com/qubic/go-node-connector v0.17.0/go.mod h1:GOQGJ6IKhm3CU62bfLJJbBerjYmt6NNhDKzxC1i7HhU=
7171
github.com/qubic/go-schnorrq v1.0.1 h1:F0R/BQVf+O7Bp57NGJmc3uXlqsaIzerg/1bmU4jMLLE=
7272
github.com/qubic/go-schnorrq v1.0.1/go.mod h1:j2qw/zHiyjH9GAScAAETWpZk6iELbjYnzIg7CQwc5wM=
73-
github.com/qubic/qubic-aggregation/shared v0.1.0 h1:D0qz928JyAQZhqpZJm+4xyocFb62zivOA6A/trYVELU=
74-
github.com/qubic/qubic-aggregation/shared v0.1.0/go.mod h1:M4YnGXPEvT2+K7c21nIYdpSUm8uEtdc2cJaQvUaEF+U=
73+
github.com/qubic/qubic-aggregation/shared v0.1.1 h1:t5eLjPvmY/2eW0tgDBV9O/ZQ2+YkdhFdS7hIS5pMvkM=
74+
github.com/qubic/qubic-aggregation/shared v0.1.1/go.mod h1:M4YnGXPEvT2+K7c21nIYdpSUm8uEtdc2cJaQvUaEF+U=
7575
github.com/qubic/qubic-http v0.9.1 h1:B45EQFAHASrzsTHU98KgmqqVh+cEhfiSAwUP7BmnNCI=
7676
github.com/qubic/qubic-http v0.9.1/go.mod h1:d+vpgJACx4OLDLmQOXY0J0ObBwDjLNs9hU0+QR5cW/k=
7777
github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ=

0 commit comments

Comments
 (0)