|
@@ -187,7 +187,7 @@ func (r *Registry) ValidateApplication(key string, reply *models.Application) er
|
|
|
}
|
|
|
|
|
|
if reply.AppKey != key {
|
|
|
- return errors.New("app key not match.")
|
|
|
+ return errors.New("app key not match")
|
|
|
}
|
|
|
|
|
|
return nil
|
|
@@ -482,6 +482,7 @@ func (r *Registry) QueryRules(args *models.Rule, reply *[]models.Rule) error {
|
|
|
|
|
|
return nil
|
|
|
}
|
|
|
+
|
|
|
// CreateEvent create event
|
|
|
func (r *Registry) CreateEvent(args *models.Event, reply *rpcs.ReplyEmptyResult) error {
|
|
|
db, err := getDB()
|