mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-30 05:01:44 +00:00
Use an interface for tags. (#195)
* Use an interface for tags. * rename TagSet to TagMap. * add documentation to TagMap.
This commit is contained in:
committed by
Anton Kaliaev
parent
a807b5db57
commit
75345c2046
@ -1,11 +1,13 @@
|
||||
package query
|
||||
|
||||
import "github.com/tendermint/tmlibs/pubsub"
|
||||
|
||||
// Empty query matches any set of tags.
|
||||
type Empty struct {
|
||||
}
|
||||
|
||||
// Matches always returns true.
|
||||
func (Empty) Matches(tags map[string]interface{}) bool {
|
||||
func (Empty) Matches(tags pubsub.TagMap) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user