Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/resource/v1/kv_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func isLegalWaitRequest(rctx *restful.Context, request *model.ListKVRequest) boo
return true
}
func watch(rctx *restful.Context, request *model.ListKVRequest, wait string) bool {
changed, topic, err := eventHappened(wait, &pubsub.Topic{
changed, _, err := eventHappened(wait, &pubsub.Topic{
Labels: request.Labels,
Project: request.Project,
MatchType: request.Match,
Expand All @@ -274,7 +274,7 @@ func watch(rctx *restful.Context, request *model.ListKVRequest, wait string) boo
return true
}
if changed {
queryFromCache(rctx, topic)
WriteErrResponse(rctx, config.ErrHasModified, "has modified")
return true
}
return false
Expand Down