Skip to content

Commit

Permalink
fix: remove some deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 22, 2021
1 parent 461f691 commit f56edde
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/commands/keyencode/keyencode.go
Expand Up @@ -29,8 +29,7 @@ func KeyEncoderFromString(formatLabel string) (KeyEncoder, error) {

func (enc KeyEncoder) FormatID(id peer.ID) string {
if enc.baseEnc == nil {
//nolint deprecated
return peer.IDB58Encode(id)
return peer.Encode(id)
}
if s, err := peer.ToCid(id).StringOfBase(enc.baseEnc.Encoding()); err != nil {
panic(err)
Expand Down
2 changes: 1 addition & 1 deletion core/corehttp/logs.go
Expand Up @@ -50,7 +50,7 @@ func LogOption() ServeOption {
w.WriteHeader(200)
wnf, errs := newWriteErrNotifier(w)
lwriter.WriterGroup.AddWriter(wnf)
log.Event(n.Context(), "log API client connected") //nolint deprecated
log.Info("log API client connected")
<-errs
})
return mux, nil
Expand Down

0 comments on commit f56edde

Please sign in to comment.