Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
weichang-x committed Feb 8, 2021
1 parent 0d308c7 commit 1342191
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions utils/constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const (
TxStatusSuccess = "success"
TxStatusFail = "fail"
NoSupportMsgTypeTag = "no support msg parse"
//unable to resolve type URL /cosmos.bank.v1beta1.MsgSend
ErrNoSupportTxPrefix = "unable to resolve type URL"

//cannot find transaction 601bf70ccdee4dde1c8be0d2_f018677a in queue for document {sync_task ObjectIdHex(\"601bdb0ccdee4dd7c214d167\")}
ErrDbNotFindTransaction = "cannot find transaction"
Expand Down
3 changes: 0 additions & 3 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ func ConvertErr(height int64, txHash, errTag string, err error) error {
return fmt.Errorf("%v-%v-%v-%v", err.Error(), errTag, height, txHash)
}

func CheckSkipErr(err error, tag string) bool {
return strings.Contains(err.Error(), tag)
}
func GetErrTag(err error) string {
slice := strings.Split(err.Error(), "-")
if len(slice) == 4 {
Expand Down

0 comments on commit 1342191

Please sign in to comment.