Skip to content

Commit

Permalink
remove the default retry count
Browse files Browse the repository at this point in the history
  • Loading branch information
danli001 authored and s8sg committed Jun 20, 2023
1 parent 277ea5e commit f01b24a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions v1/goflow.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package v1

import (
"fmt"
"time"

runtimePkg "github.com/s8sg/goflow/core/runtime"
"github.com/s8sg/goflow/core/sdk"
"github.com/s8sg/goflow/runtime"
"time"
)

type FlowService struct {
Expand All @@ -22,7 +23,7 @@ type FlowService struct {
DataStore sdk.DataStore
Logger sdk.Logger
EnableMonitoring bool
DebugEnabled bool
DebugEnabled bool

runtime *runtime.FlowRuntime
}
Expand Down Expand Up @@ -195,7 +196,7 @@ func (fs *FlowService) Start() error {
RequestAuthEnabled: fs.RequestAuthEnabled,
EnableMonitoring: fs.EnableMonitoring,
RetryQueueCount: fs.RetryCount,
DebugEnabled: fs.DebugEnabled,
DebugEnabled: fs.DebugEnabled,
}
errorChan := make(chan error)
defer close(errorChan)
Expand Down Expand Up @@ -224,7 +225,7 @@ func (fs *FlowService) StartServer() error {
RequestAuthEnabled: fs.RequestAuthEnabled,
EnableMonitoring: fs.EnableMonitoring,
RetryQueueCount: fs.RetryCount,
DebugEnabled: fs.DebugEnabled,
DebugEnabled: fs.DebugEnabled,
}
errorChan := make(chan error)
defer close(errorChan)
Expand All @@ -250,7 +251,7 @@ func (fs *FlowService) StartWorker() error {
RequestAuthEnabled: fs.RequestAuthEnabled,
EnableMonitoring: fs.EnableMonitoring,
RetryQueueCount: fs.RetryCount,
DebugEnabled: fs.DebugEnabled,
DebugEnabled: fs.DebugEnabled,
}
errorChan := make(chan error)
defer close(errorChan)
Expand Down Expand Up @@ -282,9 +283,6 @@ func (fs *FlowService) ConfigureDefault() {
if fs.RequestWriteTimeout == 0 {
fs.RequestWriteTimeout = DefaultWriteTimeoutSecond * time.Second
}
if fs.RetryCount == 0 {
fs.RetryCount = DefaultRetryCount
}
}

func (fs *FlowService) initRuntime() error {
Expand Down

0 comments on commit f01b24a

Please sign in to comment.