// Spawns a node to be used just for this run (i.e. creates a tmp repo)
Spawns a node to be used just for this run
// Spawns a node to be used just for this run ( i . e . creates a tmp repo )
func spawnEphemeral(ctx context.Context, repoPath string) (icore.CoreAPI, error) {
	if err := setupPlugins(""); err != nil {
		return nil, err
	}
	repoPath, err := createTempRepo(ctx, repoPath)
	if err != nil {
		return nil, fmt.Errorf("failed to create temp repo: %s", err)
	}
	return createNode(ctx, repoPath)
}
func spawnEphemeral ( ctx context . Context , repoPath string ) ( icore . CoreAPI , error ) { if err := setupPlugins ( " " ) ; err != nil { return nil , err } repoPath , err := createTempRepo ( ctx , repoPath ) if err != nil { return nil , fmt . Errorf ( " " , err ) } return createNode ( ctx , repoPath ) }
Spawns a node to be used just for this run
Spawns a node to be used just for this run
// Create a Temporary Repo // Spawning an ephemeral IPFS node