Skip to content

Commit

Permalink
Added Flush() to http event
Browse files Browse the repository at this point in the history
  • Loading branch information
samyfodil committed Jul 20, 2023
1 parent 2be72a4 commit e462896
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/taubyte/go-sdk
go 1.18

// Direct Taubyte imports
require github.com/taubyte/go-sdk-symbols v0.2.6
require github.com/taubyte/go-sdk-symbols v0.2.7

// Direct imports
require (
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ github.com/multiformats/go-varint v0.0.6/go.mod h1:3Ls8CIEsrijN6+B7PbrXRPxHRPuXS
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
github.com/taubyte/go-sdk-symbols v0.2.6 h1:mw33W8mnGWTn4LQAn/1AOjAYBI4iP2PPNht7gdKi6rs=
github.com/taubyte/go-sdk-symbols v0.2.6/go.mod h1:/yk+BzZAWZ2t5FU2VwTGbetffh89jz3GiOShqsOeuD4=
github.com/taubyte/go-sdk-symbols v0.2.7 h1:bNOAXcRmO3GVOMDuRsznWZTsvRE2vjN+AObKtQH7zoQ=
github.com/taubyte/go-sdk-symbols v0.2.7/go.mod h1:/yk+BzZAWZ2t5FU2VwTGbetffh89jz3GiOShqsOeuD4=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
Expand Down
4 changes: 4 additions & 0 deletions http/event/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (e Event) Write(data []byte) (int, error) {
return int(n), nil
}

func (e Event) Flush() { //implements http.Flusher
httpEventSym.EventHttpFlush(uint32(e))
}

func (e Event) Return(code int) error {
err := httpEventSym.EventHttpRetCode(uint32(e), uint32(code))
if err != 0 {
Expand Down

0 comments on commit e462896

Please sign in to comment.