Skip to content

Commit e172f84

Browse files
committed
chore: replace manucorporat/sse with gin-contrib/sse
1 parent c453f8b commit e172f84

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

clients/horizonclient/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/stellar/go/txnbuild"
1717
"github.com/stellar/go/xdr"
1818

19-
"github.com/manucorporat/sse"
19+
"github.com/gin-contrib/sse"
2020

2121
hProtocol "github.com/stellar/go/protocols/horizon"
2222
"github.com/stellar/go/protocols/horizon/effects"
@@ -175,7 +175,7 @@ func (c *Client) stream(
175175
// as many bytes as possible and forward them to sse.Decode. However this
176176
// requires much more complicated code.
177177
// We could also write our own `sse` package that works fine with streams directly
178-
// (github.com/manucorporat/sse is just using io/ioutils.ReadAll).
178+
// (github.com/gin-contrib/sse is just using io/ioutils.ReadAll).
179179
var buffer bytes.Buffer
180180
nonEmptylinesRead := 0
181181
for {

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ require (
1717
github.com/djherbis/fscache v0.10.1
1818
github.com/elazarl/go-bindata-assetfs v1.0.1
1919
github.com/getsentry/raven-go v0.2.0
20+
github.com/gin-contrib/sse v1.0.0
2021
github.com/go-chi/chi v4.1.2+incompatible
2122
github.com/go-errors/errors v1.5.1
2223
github.com/golang-jwt/jwt v3.2.2+incompatible
@@ -29,7 +30,6 @@ require (
2930
github.com/jarcoal/httpmock v0.0.0-20161210151336-4442edb3db31
3031
github.com/jmoiron/sqlx v1.3.5
3132
github.com/lib/pq v1.10.9
32-
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739
3333
github.com/mitchellh/go-homedir v1.1.0
3434
github.com/onsi/ginkgo v1.16.5
3535
github.com/onsi/gomega v1.27.10
@@ -47,7 +47,7 @@ require (
4747
github.com/spf13/viper v1.17.0
4848
github.com/stellar/go-xdr v0.0.0-20231122183749-b53fb00bcac2
4949
github.com/stellar/throttled v2.2.3-0.20190823235211-89d75816f59d+incompatible
50-
github.com/stretchr/testify v1.9.0
50+
github.com/stretchr/testify v1.10.0
5151
github.com/tyler-smith/go-bip39 v0.0.0-20180618194314-52158e4697b8
5252
github.com/xdrpp/goxdr v0.1.1
5353
google.golang.org/api v0.183.0

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ github.com/gavv/monotime v0.0.0-20161010190848-47d58efa6955 h1:gmtGRvSexPU4B1T/y
160160
github.com/gavv/monotime v0.0.0-20161010190848-47d58efa6955/go.mod h1:vmp8DIyckQMXOPl0AQVHt+7n5h7Gb7hS6CUydiV8QeA=
161161
github.com/getsentry/raven-go v0.2.0 h1:no+xWJRb5ZI7eE8TWgIq1jLulQiIoLG0IfYxv5JYMGs=
162162
github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ=
163+
github.com/gin-contrib/sse v1.0.0 h1:y3bT1mUWUxDpW4JLQg/HnTqV4rozuW4tC9eFKTxYI9E=
164+
github.com/gin-contrib/sse v1.0.0/go.mod h1:zNuFdwarAygJBht0NTKiSi3jRf6RbqeILZ9Sp6Slhe0=
163165
github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec=
164166
github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
165167
github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk=
@@ -350,8 +352,6 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
350352
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
351353
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
352354
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
353-
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739 h1:ykXz+pRRTibcSjG1yRhpdSHInF8yZY/mfn+Rz2Nd1rE=
354-
github.com/manucorporat/sse v0.0.0-20160126180136-ee05b128a739/go.mod h1:zUx1mhth20V3VKgL5jbd1BSQcW4Fy6Qs4PZvQwRFwzM=
355355
github.com/markbates/errx v1.1.0 h1:QDFeR+UP95dO12JgW+tgi2UVfo0V8YBHiUIOaeBPiEI=
356356
github.com/markbates/errx v1.1.0/go.mod h1:PLa46Oex9KNbVDZhKel8v1OT7hD5JZ2eI7AHhA0wswc=
357357
github.com/markbates/oncer v1.0.0 h1:E83IaVAHygyndzPimgUYJjbshhDTALZyXxvk9FOlQRY=
@@ -487,8 +487,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
487487
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
488488
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
489489
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
490-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
491-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
490+
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
491+
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
492492
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
493493
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
494494
github.com/tyler-smith/go-bip39 v0.0.0-20180618194314-52158e4697b8 h1:g3yQGZK+G6dfF/mw/SOwsTMzUVkpT4hB8pHxpbTXkKw=

0 commit comments

Comments
 (0)