Merge pull request #9630 from xinhangzhou/master
refactor: use maps.Copy for cleaner map handling
This commit is contained in:
7 files changed
+18
-28
No files matched your search
+2
-3
@@ -7,6 +7,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"maps"
|
||||
"math"
|
||||
"net"
|
||||
"net/http"
|
||||
@@ -3338,9 +3339,7 @@ func (r *rpcServer) GetInfo(_ context.Context,
|
||||
// Add the features to our map of features, allowing over writing of
|
||||
// existing values because features in different sets with the same bit
|
||||
// are duplicated across sets.
|
||||
for bit, feature := range rpcFeatures {
|
||||
features[bit] = feature
|
||||
}
|
||||
maps.Copy(features, rpcFeatures)
|
||||
}
|
||||
|
||||
// TODO(roasbeef): add synced height n stuff
|
||||
|
||||
Reference in new issue
Block a user