diff --git a/internal/dao/jinzhu/jinzhu.go b/internal/dao/jinzhu/jinzhu.go index 7847b8e9..3c9198af 100644 --- a/internal/dao/jinzhu/jinzhu.go +++ b/internal/dao/jinzhu/jinzhu.go @@ -29,7 +29,6 @@ var ( ) type dataSrv struct { - // core.IndexPostsService core.WalletService core.MessageService core.TopicService @@ -55,12 +54,10 @@ type webDataSrvA struct { func NewDataService() (core.DataService, core.VersionInfo) { lazyInitial() - db := conf.MustGormDB() pvs := security.NewPhoneVerifyService() tms := NewTweetMetricServentA(db) cis := cache.NewEventCacheIndexSrv(tms) - ds := &dataSrv{ TweetMetricServantA: tms, WalletService: newWalletService(db), diff --git a/internal/dao/jinzhu/metrics.go b/internal/dao/jinzhu/metrics.go index 038bf1ac..a3d350b4 100644 --- a/internal/dao/jinzhu/metrics.go +++ b/internal/dao/jinzhu/metrics.go @@ -24,7 +24,6 @@ func (s *tweetMetricSrvA) UpdateRankScore(metric *cs.TweetMetric) error { err = db.Save(postMetric).Error return }) - } func (s *tweetMetricSrvA) AddTweetMetric(postId int64) (err error) {