Skip to content

Commit 900b905

Browse files
committed
Fix
1 parent 1c4125d commit 900b905

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

cmd/serverledge/main.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
package main
22

33
import (
4+
"context"
45
"errors"
56
"fmt"
67
"log"
78
"os"
89
"os/signal"
910
"time"
1011

11-
"golang.org/x/net/context"
12+
"github.com/labstack/echo/v4"
1213

1314
"github.com/serverledge-faas/serverledge/internal/api"
1415
"github.com/serverledge-faas/serverledge/internal/config"
@@ -18,8 +19,6 @@ import (
1819
"github.com/serverledge-faas/serverledge/internal/scheduling"
1920
"github.com/serverledge-faas/serverledge/internal/telemetry"
2021
"github.com/serverledge-faas/serverledge/utils"
21-
22-
"github.com/labstack/echo/v4"
2322
)
2423

2524
func main() {

internal/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func PollAsyncResult(c echo.Context) error {
128128
payload := res.Kvs[0].Value
129129
return c.JSONBlob(http.StatusOK, payload)
130130
} else {
131-
return c.JSON(http.StatusNotFound, "request not found")
131+
return c.String(http.StatusNotFound, "")
132132
}
133133
}
134134

scripts/start-etcd.sh

100755100644
File mode changed.

0 commit comments

Comments
 (0)