Skip to content

Commit

Permalink
Merge pull request #113 from kaleido-io/receipts
Browse files Browse the repository at this point in the history
Remove tx completion tracking
  • Loading branch information
nguyer committed Sep 15, 2023
2 parents dc3c843 + 745174f commit b3b5114
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 274 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.17-alpine3.13 AS fabconnect-builder
FROM golang:1.20-alpine3.18 AS fabconnect-builder
RUN apk add make
WORKDIR /fabconnect
ADD go.mod go.sum ./
Expand Down
7 changes: 7 additions & 0 deletions internal/rest/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"encoding/json"
"fmt"
"net/http"
"runtime/pprof"
"strings"

"github.com/hyperledger/firefly-fabconnect/internal/auth"
Expand Down Expand Up @@ -101,6 +102,7 @@ func (r *router) addRoutes() {

r.httpRouter.GET("/ws", r.wsHandler)
r.httpRouter.GET("/status", r.statusHandler)
r.httpRouter.POST("/pprof", r.dumpGoRoutines)
}

func (r *router) newAccessTokenContextHandler() http.Handler {
Expand Down Expand Up @@ -446,6 +448,11 @@ func (r *router) resetSubscription(res http.ResponseWriter, req *http.Request, p
marshalAndReply(res, req, result)
}

func (r *router) dumpGoRoutines(res http.ResponseWriter, req *http.Request, params httprouter.Params) {
log.Infof("--> %s %s", req.Method, req.URL)
_ = pprof.Lookup("goroutine").WriteTo(res, 1)
}

func restAsyncReply(res http.ResponseWriter, req *http.Request, asyncResponse *messages.AsyncSentMsg) {
resBytes, _ := json.Marshal(asyncResponse)
status := 202 // accepted
Expand Down
174 changes: 0 additions & 174 deletions internal/tx/txdelaytracker.go

This file was deleted.

Loading

0 comments on commit b3b5114

Please sign in to comment.