Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
colindickson committed Nov 27, 2023
1 parent ce4046a commit 7ee478c
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions cmd/substreams-sink-sql/create_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@ func createUserE(cmd *cobra.Command, args []string) error {
return fmt.Errorf("non-empty password is required")
}

createFunc := func(ctx context.Context) error {
dbLoader, err := db.NewLoader(dsn, 0, db.OnModuleHashMismatchError, nil, zlog, tracer)
if err != nil {
return fmt.Errorf("new psql loader: %w", err)
}

err = dbLoader.CreateUser(ctx, username, password, "substreams", readOnly)
if err != nil {
return fmt.Errorf("create user: %w", err)
}

return nil
}

if err := retry(ctx, func(ctx context.Context) error {
dbLoader, err := db.NewLoader(dsn, 0, db.OnModuleHashMismatchError, nil, zlog, tracer)
if err != nil {
Expand Down

0 comments on commit 7ee478c

Please sign in to comment.