Skip to content

Commit

Permalink
[fix] remove deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
0xVanfer committed Jan 22, 2024
1 parent c33ee4c commit ad08a0c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 267 deletions.
117 changes: 0 additions & 117 deletions curveStableModel_2.go

This file was deleted.

4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ module github.com/0xVanfer/utils
go 1.19

require (
github.com/0xVanfer/types v0.1.4
github.com/0xVanfer/types v0.1.6
github.com/ethereum/go-ethereum v1.10.25
github.com/imroc/req v0.3.2
golang.org/x/crypto v0.1.0
golang.org/x/text v0.4.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
)

require (
github.com/btcsuite/btcd/btcec/v2 v2.2.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
github.com/shopspring/decimal v1.3.1 // indirect
golang.org/x/sys v0.1.0 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
)
8 changes: 2 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/0xVanfer/types v0.1.4 h1:bQ9IMUC70QQu0rk3fcEBYdY/whFuqDT8YCtmudx/0uw=
github.com/0xVanfer/types v0.1.4/go.mod h1:8QSGeOQOStzyb8kAZXRVnxJLOJVMqI16lO/a+OBXFOc=
github.com/0xVanfer/types v0.1.6 h1:8lUHazjJ2Yir7uiTkNqsuhFH26W4Wy7VD1qw5lPXulQ=
github.com/0xVanfer/types v0.1.6/go.mod h1:8QSGeOQOStzyb8kAZXRVnxJLOJVMqI16lO/a+OBXFOc=
github.com/btcsuite/btcd/btcec/v2 v2.2.0 h1:fzn1qaOt32TuLjFlkzYSsBC35Q3KUjT1SwPxiMSCF5k=
github.com/btcsuite/btcd/btcec/v2 v2.2.0/go.mod h1:U7MHm051Al6XmscBQ0BoNydpOTsFAn707034b5nY8zU=
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 h1:q0rUy8C/TYNBQS1+CGKw68tLOFYSNEs0TFnxxnS9+4U=
Expand All @@ -20,7 +20,3 @@ golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.4.0 h1:BrVqGRd7+k1DiOgtnFvAkoQEWQvBc25ouMJM6429SFg=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc h1:2gGKlE2+asNV9m7xrywl36YYNnBG5ZQ0r/BOOxqPpmk=
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc/go.mod h1:m7x9LTH6d71AHyAX77c9yqWCCa3UKHcVEj9y7hAtKDk=
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df h1:n7WqCuqOuCbNr617RXOY0AWRXxgwEyPp2z+p0+hgMuE=
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df/go.mod h1:LRQQ+SO6ZHR7tOkpBDuZnXENFzX8qRjMDMyPD6BRkCw=
4 changes: 2 additions & 2 deletions recover.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func Restart(funcToRecover func()) {
runtime.Callers(2, pc)
f := runtime.FuncForPC(pc[1])
fmt.Println(r)
fmt.Println(TimeNowString(), f.Name(), "recovered from panic, will restart.")
fmt.Println(time.Now().UTC().Format("2006-01-02 15:04:05"), f.Name(), "recovered from panic, will restart.")
// At least sleep for 1 sec, in case of endless loop.
time.Sleep(time.Second)
funcToRecover()
Expand All @@ -29,7 +29,7 @@ func RestartAndSleep(funcToRecover func(), sleepTime time.Duration) {
runtime.Callers(2, pc)
f := runtime.FuncForPC(pc[1])
fmt.Println(r)
fmt.Println(TimeNowString(), f.Name(), "recovered from panic, will restart.")
fmt.Println(time.Now().UTC().Format("2006-01-02 15:04:05"), f.Name(), "recovered from panic, will restart.")
if sleepTime.Seconds() < 1 {
sleepTime = time.Second
}
Expand Down
37 changes: 0 additions & 37 deletions sendMail.go

This file was deleted.

102 changes: 0 additions & 102 deletions times.go

This file was deleted.

0 comments on commit ad08a0c

Please sign in to comment.