chore: use logx.Must instead of log.Fatal (#3189)

This commit is contained in:
Kevin Wan
2023-04-29 23:46:04 +08:00
committed by GitHub
parent a31256b327
commit 8ffe4c01d1
7 changed files with 18 additions and 41 deletions

View File

@@ -343,7 +343,7 @@ func buildRequest(rs requestSettings) (*http.Request, error) {
"time=" + strconv.FormatInt(rs.timestamp, 10),
}, "; ")
encrypter, err := codec.NewRsaEncrypter([]byte(pubKey))
encrypter, err := codec.NewRsaEncrypter(pubKey)
if err != nil {
log.Fatal(err)
}