mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 20:37:30 +00:00
fix merge
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"crypto/tls"
|
"crypto/tls"
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"errors"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"net/http"
|
"net/http"
|
||||||
@@ -271,9 +270,6 @@ func startZitadel(ctx context.Context, config *Config, masterKey string, server
|
|||||||
actionsLogstoreSvc := logstore.New(queries, actionsExecutionDBEmitter, actionsExecutionStdoutEmitter)
|
actionsLogstoreSvc := logstore.New(queries, actionsExecutionDBEmitter, actionsExecutionStdoutEmitter)
|
||||||
actions.SetLogstoreService(actionsLogstoreSvc)
|
actions.SetLogstoreService(actionsLogstoreSvc)
|
||||||
|
|
||||||
if !config.Notifications.LegacyEnabled && dbClient.Type() == "cockroach" {
|
|
||||||
return errors.New("notifications must be set to LegacyEnabled=true when using CockroachDB")
|
|
||||||
}
|
|
||||||
q, err := queue.NewQueue(&queue.Config{
|
q, err := queue.NewQueue(&queue.Config{
|
||||||
Client: dbClient,
|
Client: dbClient,
|
||||||
})
|
})
|
||||||
|
@@ -27,9 +27,6 @@ type Config struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewQueue(config *Config) (_ *Queue, err error) {
|
func NewQueue(config *Config) (_ *Queue, err error) {
|
||||||
if config.Client.Type() == "cockroach" {
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
return &Queue{
|
return &Queue{
|
||||||
driver: riverpgxv5.New(config.Client.Pool),
|
driver: riverpgxv5.New(config.Client.Pool),
|
||||||
config: &river.Config{
|
config: &river.Config{
|
||||||
|
Reference in New Issue
Block a user