Skip to content

Commit

Permalink
refactor: update dwn configuration generation import path
Browse files Browse the repository at this point in the history
  • Loading branch information
prnk28 committed Oct 9, 2024
1 parent 45c4e0c commit 0a16e41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/dwn/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/json"

"github.com/ipfs/boxo/files"
dwngen "github.com/onsonr/sonr/pkg/dwn/gen"
"github.com/onsonr/sonr/pkg/dwn/gen"
"github.com/onsonr/sonr/pkg/nebula/routes"
)

Expand All @@ -23,7 +23,7 @@ var (
)

// NewVaultDirectory creates a new directory with the default files
func NewVaultDirectory(cnfg *dwngen.Config) (files.Node, error) {
func NewVaultDirectory(cnfg *gen.Config) (files.Node, error) {
dwnJSON, err := json.Marshal(cnfg)
if err != nil {
return nil, err
Expand Down Expand Up @@ -55,7 +55,7 @@ func IndexHTMLFile() (files.Node, error) {
}

// MarshalConfigFile uses the config template to generate the dwn config file
func MarshalConfigFile(c *dwngen.Config) (files.Node, error) {
func MarshalConfigFile(c *gen.Config) (files.Node, error) {
dwnConfigData, err := json.Marshal(c)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0a16e41

Please sign in to comment.