Skip to content

Commit

Permalink
increased etcd timeout v.2
Browse files Browse the repository at this point in the history
  • Loading branch information
xtreding committed Dec 28, 2020
1 parent 3252ea5 commit f166b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion synchronization/etcd_service.go
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ func NewService(ctx context.Context, serverName, syncServiceType, syncServiceEnd

//Lock try to get Etcd monitor with timeout (30 seconds)
func (es *EtcdService) Lock(system string, collection string) (storages.Lock, error) {
ctx, cancel := context.WithDeadline(es.ctx, time.Now().Add(1*time.Minute))
ctx, cancel := context.WithDeadline(es.ctx, time.Now().Add(2*time.Minute))
defer cancel()

session, sessionError := concurrency.NewSession(es.client, concurrency.WithContext(ctx))

0 comments on commit f166b0f

Please sign in to comment.