mirror of
https://github.com/asmogo/nws.git
synced 2025-02-07 13:59:00 +00:00
removed pprof. added comment
This commit is contained in:
parent
a31522ca41
commit
9b7a43c4b1
@ -14,7 +14,6 @@ import (
|
|||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
"log/slog"
|
"log/slog"
|
||||||
"net"
|
"net"
|
||||||
_ "net/http/pprof"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -50,6 +49,7 @@ type Exit struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// NewExit creates a new Exit node with the provided context and config.
|
// NewExit creates a new Exit node with the provided context and config.
|
||||||
|
// This function will currently panic if there is an error while creating the Exit node.
|
||||||
func NewExit(ctx context.Context, exitNodeConfig *config.ExitConfig) *Exit {
|
func NewExit(ctx context.Context, exitNodeConfig *config.ExitConfig) *Exit {
|
||||||
// generate new private key if it is not set
|
// generate new private key if it is not set
|
||||||
if exitNodeConfig.NostrPrivateKey == "" {
|
if exitNodeConfig.NostrPrivateKey == "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user