diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-31 11:55:47 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2022-05-31 11:55:47 -0700 |
| commit | 0197c3f5f7ac92d83711d28739670cba2e018701 (patch) | |
| tree | 8e9a4d77f785329b30fd8ec4c90ca8e473677c3b /hotline | |
| parent | 3a6449909263128b8d7e60194031db0eff81b3f2 (diff) | |
Update dependencies
Diffstat (limited to 'hotline')
| -rw-r--r-- | hotline/client.go | 3 | ||||
| -rw-r--r-- | hotline/server.go | 5 | ||||
| -rw-r--r-- | hotline/transaction_handlers.go | 2 | ||||
| -rw-r--r-- | hotline/ui.go | 2 |
4 files changed, 4 insertions, 8 deletions
diff --git a/hotline/client.go b/hotline/client.go index 4ca42f3..24df7c3 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -10,7 +10,7 @@ import ( "github.com/rivo/tview" "github.com/stretchr/testify/mock" "go.uber.org/zap" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "math/big" "math/rand" "net" @@ -61,7 +61,6 @@ func readConfig(cfgPath string) (*ClientPrefs, error) { prefs := ClientPrefs{} decoder := yaml.NewDecoder(fh) - decoder.SetStrict(true) if err := decoder.Decode(&prefs); err != nil { return nil, err } diff --git a/hotline/server.go b/hotline/server.go index 90b7ea0..067cf9f 100644 --- a/hotline/server.go +++ b/hotline/server.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" ) const ( @@ -395,7 +395,6 @@ func (s *Server) loadThreadedNews(threadedNewsPath string) error { return err } decoder := yaml.NewDecoder(fh) - decoder.SetStrict(true) return decoder.Decode(s.ThreadedNews) } @@ -419,7 +418,6 @@ func (s *Server) loadAccounts(userDir string) error { account := Account{} decoder := yaml.NewDecoder(fh) - decoder.SetStrict(true) if err := decoder.Decode(&account); err != nil { return err } @@ -436,7 +434,6 @@ func (s *Server) loadConfig(path string) error { } decoder := yaml.NewDecoder(fh) - decoder.SetStrict(true) err = decoder.Decode(s.Config) if err != nil { return err diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index ba2512e..745cb40 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -5,7 +5,7 @@ import ( "encoding/binary" "errors" "fmt" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "io/ioutil" "math/big" "os" diff --git a/hotline/ui.go b/hotline/ui.go index 79cb5e6..168bf3a 100644 --- a/hotline/ui.go +++ b/hotline/ui.go @@ -5,7 +5,7 @@ import ( "github.com/davecgh/go-spew/spew" "github.com/gdamore/tcell/v2" "github.com/rivo/tview" - "gopkg.in/yaml.v2" + "gopkg.in/yaml.v3" "io" "io/ioutil" "os" |