diff --git a/internal/rpc/msg/del_msg.go b/internal/rpc/msg/del_msg.go index b2252730d..ce1303eb7 100644 --- a/internal/rpc/msg/del_msg.go +++ b/internal/rpc/msg/del_msg.go @@ -1,7 +1,6 @@ package msg import ( - "Open_IM/pkg/common/db" "Open_IM/pkg/common/log" commonPb "Open_IM/pkg/proto/sdk_ws" "Open_IM/pkg/utils" diff --git a/pkg/common/config/config.go b/pkg/common/config/config.go index dde2e6d62..2a57344e8 100644 --- a/pkg/common/config/config.go +++ b/pkg/common/config/config.go @@ -22,7 +22,7 @@ var Config config type callBackConfig struct { Enable bool `yaml:"enable"` CallbackTimeOut int `yaml:"callbackTimeOut"` - CallbackFailedContinue bool `callbackFailedContinue` + CallbackFailedContinue bool `yaml:"callbackFailedContinue"` } type config struct { diff --git a/pkg/common/constant/error.go b/pkg/common/constant/error.go index b41474b03..00a11fd49 100644 --- a/pkg/common/constant/error.go +++ b/pkg/common/constant/error.go @@ -91,7 +91,7 @@ const ( IntentionalError = 10007 ) -func (e *ErrInfo) Error() string { +func (e ErrInfo) Error() string { return e.ErrMsg }