Skip to content

Commit

Permalink
Remove gocore dependency entirely (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
galt-tr authored Feb 29, 2024
1 parent 641e09b commit 72913df
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 291 deletions.
60 changes: 0 additions & 60 deletions app/api/base/replay.go

This file was deleted.

4 changes: 0 additions & 4 deletions go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions hack/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"encoding/hex"
"flag"
"fmt"
"log"
"strings"
"time"

Expand All @@ -20,7 +21,6 @@ import (

"github.com/bitcoin-sv/alert-system/app/p2p"
"github.com/bitcoin-sv/alert-system/utils"
"github.com/ordishs/gocore"
)

func main() {
Expand All @@ -34,7 +34,6 @@ func main() {
flag.Parse()

ctx := context.Background()
log := gocore.Log("sig-test")

// Load the configuration and services
_appConfig, err := config.LoadDependencies(context.Background(), models.BaseModels, false)
Expand Down Expand Up @@ -120,12 +119,12 @@ func main() {
panic(err)
}
if !v {
log.Errorf("signature is not valid")
_appConfig.Services.Log.Errorf("signature is not valid")
return
}
log.Infof("bytes: %x", a.Serialize())
_appConfig.Services.Log.Infof("bytes: %x", a.Serialize())
publish(ctx, topics[_appConfig.P2P.TopicName], a.Serialize())
log.Infof("successfully published alert to topic %s", _appConfig.P2P.TopicName)
_appConfig.Services.Log.Infof("successfully published alert to topic %s", _appConfig.P2P.TopicName)
}

// InfoAlert creates an informational alert
Expand Down
212 changes: 0 additions & 212 deletions hack/sign/sign.go

This file was deleted.

0 comments on commit 72913df

Please sign in to comment.