forked from TrueCloudLab/frostfs-api-go
state: implement SignedDataSource on MetricsRequest message
This commit is contained in:
parent
539e93e558
commit
df9a04e542
2 changed files with 12 additions and 0 deletions
|
@ -6,3 +6,10 @@ package state
|
||||||
func (m NetmapRequest) SignedData() ([]byte, error) {
|
func (m NetmapRequest) SignedData() ([]byte, error) {
|
||||||
return make([]byte, 0), nil
|
return make([]byte, 0), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignedData returns payload bytes of the request.
|
||||||
|
//
|
||||||
|
// Always returns empty slice.
|
||||||
|
func (m MetricsRequest) SignedData() ([]byte, error) {
|
||||||
|
return make([]byte, 0), nil
|
||||||
|
}
|
||||||
|
|
|
@ -27,6 +27,11 @@ func TestRequestSign(t *testing.T) {
|
||||||
return new(NetmapRequest)
|
return new(NetmapRequest)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{ // MetricsRequest
|
||||||
|
constructor: func() sigType {
|
||||||
|
return new(MetricsRequest)
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
|
|
Loading…
Reference in a new issue