aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/cluster_commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/topology/cluster_commands.go')
-rw-r--r--weed/topology/cluster_commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/topology/cluster_commands.go b/weed/topology/cluster_commands.go
index 6432828e8..2546702e5 100644
--- a/weed/topology/cluster_commands.go
+++ b/weed/topology/cluster_commands.go
@@ -37,12 +37,12 @@ func (c *MaxVolumeIdCommand) Apply(server raft.Server) (interface{}, error) {
func (s *MaxVolumeIdCommand) Persist(sink hashicorpRaft.SnapshotSink) error {
b, err := json.Marshal(s)
if err != nil {
- return fmt.Errorf("marshal: %v", err)
+ return fmt.Errorf("marshal: %w", err)
}
_, err = sink.Write(b)
if err != nil {
sink.Cancel()
- return fmt.Errorf("sink.Write(): %v", err)
+ return fmt.Errorf("sink.Write(): %w", err)
}
return sink.Close()
}