Merge pull request #9630 from xinhangzhou/master

refactor: use maps.Copy for cleaner map handling
This commit is contained in:
András Bánki-Horváth
2025-03-28 07:54:34 +01:00
committed by GitHub
7 changed files with 18 additions and 28 deletions

View File

@@ -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