ax(node): replace prose comment with usage example on NewNodeManagerWithPaths
Co-Authored-By: Charon <charon@lethean.io>
This commit is contained in:
parent
7921881ed6
commit
04c05c43a7
1 changed files with 2 additions and 2 deletions
|
|
@ -96,8 +96,8 @@ func NewNodeManager() (*NodeManager, error) {
|
|||
return NewNodeManagerWithPaths(keyPath, configPath)
|
||||
}
|
||||
|
||||
// NewNodeManagerWithPaths creates a NodeManager with custom paths.
|
||||
// This is primarily useful for testing to avoid xdg path caching issues.
|
||||
// manager, err := node.NewNodeManagerWithPaths("/tmp/test.key", "/tmp/test.json")
|
||||
// if err != nil { return err }
|
||||
func NewNodeManagerWithPaths(keyPath, configPath string) (*NodeManager, error) {
|
||||
manager := &NodeManager{
|
||||
keyPath: keyPath,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue