mirror of
https://github.com/zitadel/zitadel.git
synced 2025-10-27 12:19:00 +00:00
fix: remove unnecessary functions from auth.proto
This commit is contained in:
@@ -17,13 +17,10 @@ type Config struct {
|
||||
GRPC grpc_util.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, conf Config) error {
|
||||
api := &API{
|
||||
grpcServer: *grpc.StartServer(conf.GRPC.ToServerConfig()),
|
||||
gateway: *grpc.StartGateway(conf.GRPC.ToGatewayConfig()),
|
||||
}
|
||||
server.StartServer(ctx, &api.grpcServer)
|
||||
server.StartGateway(ctx, &api.gateway)
|
||||
func Start(ctx context.Context, conf Config) {
|
||||
grpcServer := grpc.StartServer(conf.GRPC.ToServerConfig())
|
||||
grpcGateway := grpc.StartGateway(conf.GRPC.ToGatewayConfig())
|
||||
|
||||
return nil
|
||||
server.StartServer(ctx, grpcServer)
|
||||
server.StartGateway(ctx, grpcGateway)
|
||||
}
|
||||
|
||||
@@ -2,8 +2,6 @@ package management
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/caos/logging"
|
||||
|
||||
"github.com/caos/zitadel/internal/api/auth"
|
||||
app "github.com/caos/zitadel/internal/management"
|
||||
"github.com/caos/zitadel/pkg/management/api"
|
||||
@@ -14,8 +12,6 @@ type Config struct {
|
||||
API api.Config
|
||||
}
|
||||
|
||||
func Start(ctx context.Context, config Config, authZ auth.Config) error {
|
||||
err := api.Start(ctx, config.API)
|
||||
logging.Log("MAIN-6dhRs").OnError(err).Panic("unable to start api")
|
||||
return err
|
||||
func Start(ctx context.Context, config Config, authZ auth.Config) {
|
||||
api.Start(ctx, config.API)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user