autopilot: fix nil map assignment
Use the `clear` call to reset a map on `reset` instead of assigning nil to the entry.
This commit is contained in:
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -7284,7 +7284,7 @@ func (r *rpcServer) GetNetworkInfo(ctx context.Context,
|
||||
totalNetworkCapacity = 0
|
||||
minChannelSize = math.MaxInt64
|
||||
maxChannelSize = 0
|
||||
allChans = nil
|
||||
clear(allChans)
|
||||
clear(seenChans)
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user