Skip to content

Commit 938eaaf

Browse files
committed
just dont warn
1 parent 3607c3d commit 938eaaf

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

dbos/dbos.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ var dbos *executor
6868

6969
func getExecutor() *executor {
7070
if dbos == nil {
71-
fmt.Println("warning: DBOS instance not initiliazed")
7271
return nil
7372
}
7473
return dbos
@@ -142,9 +141,6 @@ func Launch(options ...LaunchOption) error {
142141
// Create context with cancel function for queue runner
143142
ctx, cancel := context.WithCancel(context.Background())
144143

145-
// Create the internal workflow queue
146-
NewWorkflowQueue(DBOS_INTERNAL_QUEUE_NAME)
147-
148144
dbos = &executor{
149145
systemDB: systemDB,
150146
queueRunnerCtx: ctx,

dbos/logger_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ func TestLogger(t *testing.T) {
2626
logger.Info("Test message from default logger")
2727

2828
})
29-
t.Run("Custom logger", func(t *testing.T) {
3029

30+
t.Run("Custom logger", func(t *testing.T) {
3131
// Test with custom slog logger
3232
var buf bytes.Buffer
3333
slogLogger := slog.New(slog.NewTextHandler(&buf, &slog.HandlerOptions{

dbos/queue.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
var (
1717
workflowQueueRegistry = make(map[string]WorkflowQueue)
1818
DBOS_INTERNAL_QUEUE_NAME = "_dbos_internal_queue"
19+
_ = NewWorkflowQueue(DBOS_INTERNAL_QUEUE_NAME)
1920
)
2021

2122
// RateLimiter represents a rate limiting configuration

0 commit comments

Comments
 (0)