[#189] shard: Fix missing return statement in SetMode method
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
cba87a1300
commit
dae8d3de5b
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue