Skip to content

Commit 37b8a06

Browse files
committed
remove arc scan and value
1 parent 947b39e commit 37b8a06

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

transaction/broadcaster/arc.go

-14
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ package broadcaster
33
import (
44
"bytes"
55
"context"
6-
"database/sql/driver"
76
"encoding/json"
8-
"errors"
97
"fmt"
108
"io"
119
"log"
@@ -60,18 +58,6 @@ type ArcResponse struct {
6058
Detail *string `json:"detail,omitempty"`
6159
}
6260

63-
func (ts ArcResponse) Value() (driver.Value, error) {
64-
return json.Marshal(ts)
65-
}
66-
67-
func (f *ArcResponse) Scan(value interface{}) error {
68-
b, ok := value.([]byte)
69-
if !ok {
70-
return errors.New("type assertion to []byte failed")
71-
}
72-
return json.Unmarshal(b, &f)
73-
}
74-
7561
func (a *Arc) Broadcast(t *transaction.Transaction) (*transaction.BroadcastSuccess, *transaction.BroadcastFailure) {
7662
var buf *bytes.Buffer
7763
for _, input := range t.Inputs {

0 commit comments

Comments
 (0)