-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: refactory #348
chore: refactory #348
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
nodeDir, err := os.MkdirTemp("", "tmp-signer") | ||
if err != nil { | ||
return nil, err | ||
} | ||
defer func() { | ||
_ = os.RemoveAll(nodeDir) | ||
}() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodeDir, err := os.MkdirTemp("", "tmp-signer") | |
if err != nil { | |
return nil, err | |
} | |
defer func() { | |
_ = os.RemoveAll(nodeDir) | |
}() | |
nodeDir := t.TempDir() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t.TempDir() internally calls t.CleanUp, so a bit cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem is, I don't have the *testing.T
there
PrivateSigner
to specific package