cmd/bootnode: defer udp connection close (#27787)

This commit is contained in:
Zig Blathazar 2023-07-31 20:45:13 +03:30 committed by GitHub
parent 817553cc28
commit 4e9775668e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,7 @@ func main() {
if err != nil {
utils.Fatalf("-ListenUDP: %v", err)
}
defer conn.Close()
db, _ := enode.OpenDB("")
ln := enode.NewLocalNode(db, nodeKey)