Skip to content

Commit 1aaf2e0

Browse files
add field to capability response metadata to convey the total number of don participants
1 parent 0b78234 commit 1aaf2e0

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

pkg/capabilities/capabilities.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ type CapabilityResponse struct {
7474

7575
type ResponseMetadata struct {
7676
Metering []MeteringNodeDetail
77+
N uint32
7778
}
7879

7980
type MeteringNodeDetail struct {

pkg/capabilities/pb/capabilities.pb.go

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/capabilities/pb/capabilities.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ message ResponseMetadata {
127127
// If you are working with this in a capability, you should not emit
128128
// more than one metering report per node.
129129
repeated metering.MeteringReportNodeDetail metering = 1;
130+
// n represents the total number of nodes in a capability don.
131+
uint32 n = 2;
130132
}
131133

132134
message RegistrationMetadata {

0 commit comments

Comments
 (0)