Skip to content

Commit b93b89e

Browse files
authored
Merge pull request #670 from helixml/blank-imports
Add comments to blank imports
2 parents d5cac1a + 910d48f commit b93b89e

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

api/pkg/prompts/prompts.go

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package prompts
22

33
import (
44
"bytes"
5-
_ "embed"
65
"strings"
76
"text/template"
87

api/pkg/server/server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
"github.com/helixml/helix/api/pkg/stripe"
2828
"github.com/helixml/helix/api/pkg/system"
2929

30-
_ "net/http/pprof"
30+
_ "net/http/pprof" // enable profiling
3131
)
3232

3333
const APIPrefix = "/api/v1"

api/pkg/store/migration_scripts.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ package store
33
import (
44
"fmt"
55

6-
_ "github.com/lib/pq"
7-
86
"gorm.io/gorm"
97

10-
_ "github.com/doug-martin/goqu/v9/dialect/postgres"
11-
_ "github.com/golang-migrate/migrate/v4/database/postgres"
8+
_ "github.com/doug-martin/goqu/v9/dialect/postgres" // postgres query builder
9+
_ "github.com/golang-migrate/migrate/v4/database/postgres" // postgres migrations
10+
_ "github.com/lib/pq" // enable postgres driver
1211
)
1312

1413
// the poing of this setup is if when we change database schemas we need to loop over

api/pkg/store/postgres.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ import (
1313

1414
"database/sql"
1515

16-
_ "github.com/lib/pq"
17-
"github.com/rs/zerolog/log"
16+
_ "github.com/doug-martin/goqu/v9/dialect/postgres" // postgres query builder
17+
_ "github.com/golang-migrate/migrate/v4/database/postgres" // postgres migrations
18+
_ "github.com/lib/pq" // enable postgres driver
1819

1920
"gorm.io/driver/postgres"
2021
"gorm.io/gorm"
2122

2223
"github.com/doug-martin/goqu/v9"
23-
_ "github.com/doug-martin/goqu/v9/dialect/postgres"
2424
"github.com/golang-migrate/migrate/v4"
25-
_ "github.com/golang-migrate/migrate/v4/database/postgres"
2625
"github.com/golang-migrate/migrate/v4/source/iofs"
2726
"github.com/helixml/helix/api/pkg/config"
2827
"github.com/helixml/helix/api/pkg/types"
28+
"github.com/rs/zerolog/log"
2929
)
3030

3131
type PostgresStore struct {

api/pkg/testfaster_client/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"io"
88
"log"
99
"net/http"
10-
_ "net/http/pprof"
10+
_ "net/http/pprof" // enable profiling
1111
"os"
1212
"sync"
1313
"time"

0 commit comments

Comments
 (0)