Skip to content

Commit

Permalink
chore(autofmt): Automated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Apr 22, 2024
1 parent a916327 commit bde7c72
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 33 deletions.
1 change: 1 addition & 0 deletions backend/controller/module_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"strings"

"connectrpc.com/connect"

ftlv1 "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1"
"github.com/TBD54566975/ftl/backend/schema"
cf "github.com/TBD54566975/ftl/common/configuration"
Expand Down
6 changes: 3 additions & 3 deletions backend/protos/xyz/block/ftl/v1/ftl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ message ModuleContextResponse {
optional string module = 1;
string name = 2;
}

enum DBType {
POSTGRES = 0;
POSTGRES = 0;
}

message DSN {
Expand All @@ -37,7 +37,7 @@ message ModuleContextResponse {
}

map<string, bytes> configs = 1;
map<string, bytes> secrets = 2;
map<string, bytes> secrets = 2;
repeated DSN databases = 3;
}

Expand Down
12 changes: 6 additions & 6 deletions examples/go/echo/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions go-runtime/ftl/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"database/sql"
"fmt"

"github.com/TBD54566975/ftl/go-runtime/modulecontext"

_ "github.com/jackc/pgx/v5/stdlib" // Register Postgres driver

"github.com/TBD54566975/ftl/go-runtime/modulecontext"
)

type Database struct {
Expand Down
4 changes: 2 additions & 2 deletions go-runtime/modulecontext/db_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"fmt"
"strconv"

ftlv1 "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1"

_ "github.com/jackc/pgx/v5/stdlib" // SQL driver

ftlv1 "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1"
)

type DBType int32
Expand Down
3 changes: 2 additions & 1 deletion go-runtime/modulecontext/modulecontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package modulecontext
import (
"context"

"github.com/alecthomas/types/optional"

ftlv1 "github.com/TBD54566975/ftl/backend/protos/xyz/block/ftl/v1"
cf "github.com/TBD54566975/ftl/common/configuration"
"github.com/alecthomas/types/optional"
)

// ModuleContext holds the context needed for a module, including configs, secrets and DSNs
Expand Down
29 changes: 10 additions & 19 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bde7c72

Please sign in to comment.