state: implement SignedDataSource on DumpRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 16:15:31 +03:00
parent ea12eabaf6
commit 603db9c325
2 changed files with 12 additions and 0 deletions

View file

@ -20,3 +20,10 @@ func (m MetricsRequest) SignedData() ([]byte, error) {
func (m HealthRequest) SignedData() ([]byte, error) { func (m HealthRequest) SignedData() ([]byte, error) {
return make([]byte, 0), nil return make([]byte, 0), nil
} }
// SignedData returns payload bytes of the request.
//
// Always returns an empty slice.
func (m DumpRequest) SignedData() ([]byte, error) {
return make([]byte, 0), nil
}

View file

@ -37,6 +37,11 @@ func TestRequestSign(t *testing.T) {
return new(HealthRequest) return new(HealthRequest)
}, },
}, },
{ // DumpRequest
constructor: func() sigType {
return new(DumpRequest)
},
},
} }
for _, item := range items { for _, item := range items {