fix(inmem): fix typos in source service

pull/12246/head
zhulongcheng 2019-02-28 10:52:54 +08:00
parent 1a60087121
commit 0a4ef01294
1 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ func (s *Service) UpdateSource(ctx context.Context, id platform.ID, upd platform
if err != nil {
return nil, &platform.Error{
Err: err,
Op: OpPrefix + platform.OpUpdateView,
Op: OpPrefix + platform.OpUpdateSource,
}
}
@ -139,7 +139,7 @@ func (s *Service) DeleteSource(ctx context.Context, id platform.ID) error {
if _, err := s.FindSourceByID(ctx, id); err != nil {
return &platform.Error{
Err: err,
Op: OpPrefix + platform.OpDeleteView,
Op: OpPrefix + platform.OpDeleteSource,
}
}
s.sourceKV.Delete(id.String())