disabling eventbus on windows, causes deadlock.
This commit is contained in:
parent
ce8efdb753
commit
85986cf95c
|
@ -10,6 +10,7 @@ import (
|
|||
"github.com/gin-gonic/gin"
|
||||
"github.com/sirupsen/logrus"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
@ -78,13 +79,16 @@ func (ae *AppEngine) Setup() (*gin.RouterGroup, *gin.Engine) {
|
|||
|
||||
secure.POST("/query", handler.QueryResourceFhir)
|
||||
|
||||
//server-side-events handler
|
||||
//server-side-events handler (only supported on mac/linux)
|
||||
// TODO: causes deadlock on Windows
|
||||
if runtime.GOOS != "windows" {
|
||||
secure.GET("/events/stream",
|
||||
middleware.SSEHeaderMiddleware(),
|
||||
middleware.SSEEventBusServerMiddleware(ae.Logger),
|
||||
handler.SSEStream,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if ae.Config.GetBool("web.allow_unsafe_endpoints") {
|
||||
//this endpoint lets us request data directly from the source api
|
||||
|
|
Loading…
Reference in New Issue