File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ require (
9
9
golang.org/x/sync v0.6.0
10
10
)
11
11
12
- require github.com/stretchr/objx v0.5.2 // indirect
13
-
14
12
require (
15
13
github.com/pkg/errors v0.9.1
16
14
github.com/pmezard/go-difflib v1.0.0 // indirect
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
4
4
github.com/pkg/errors v0.9.1 /go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0 =
5
5
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
6
6
github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
7
- github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY =
8
- github.com/stretchr/objx v0.5.2 /go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA =
9
- github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk =
10
- github.com/stretchr/testify v1.8.4 /go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo =
11
7
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg =
12
8
github.com/stretchr/testify v1.9.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
13
9
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA =
Original file line number Diff line number Diff line change 8
8
"errors"
9
9
"fmt"
10
10
"io"
11
+ "log"
11
12
"net/http"
12
13
"time"
13
14
@@ -43,6 +44,7 @@ type Arc struct {
43
44
WaitForStatus string
44
45
WaitFor ArcStatus
45
46
Client HTTPClient // Added for testing
47
+ Verbose bool
46
48
}
47
49
48
50
type ArcResponse struct {
@@ -165,6 +167,9 @@ func (a *Arc) Broadcast(t *transaction.Transaction) (*transaction.BroadcastSucce
165
167
}
166
168
167
169
response := & ArcResponse {}
170
+ if a .Verbose {
171
+ log .Println ("msg" , string (msg ))
172
+ }
168
173
err = json .Unmarshal (msg , & response )
169
174
if err != nil {
170
175
return nil , & transaction.BroadcastFailure {
You can’t perform that action at this time.
0 commit comments