Skip to content

Commit

Permalink
chore: use WriteTimeout instead of Gateway.pendingEventsQueryTimeout (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
atzoum authored Nov 3, 2022
1 parent 60bc174 commit e9aff77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ func (gateway *HandleT) pendingEventsHandler(w http.ResponseWriter, r *http.Requ
}
}

ctx, cancel := context.WithTimeout(r.Context(), config.GetDuration("Gateway.pendingEventsQueryTimeout", 10, time.Second))
ctx, cancel := context.WithTimeout(r.Context(), WriteTimeout)
defer cancel()

var pending bool
Expand Down

0 comments on commit e9aff77

Please sign in to comment.