[#189] shard: Fix missing return statement in SetMode method

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-19 16:51:58 +03:00 committed by Alex Vanin
parent cba87a1300
commit dae8d3de5b

View file

@ -47,6 +47,8 @@ func (m Mode) String() string {
// to set shard mode.
func (s *Shard) SetMode(m Mode) error {
s.mode.Store(uint32(m))
return nil
}
func (s *Shard) getMode() Mode {