mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-29 20:51:45 +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
@ -21,7 +21,7 @@ func TestExample(t *testing.T) {
|
||||
ch := make(chan interface{}, 1)
|
||||
err := s.Subscribe(ctx, "example-client", query.MustParse("abci.account.name='John'"), ch)
|
||||
require.NoError(t, err)
|
||||
err = s.PublishWithTags(ctx, "Tombstone", map[string]interface{}{"abci.account.name": "John"})
|
||||
err = s.PublishWithTags(ctx, "Tombstone", pubsub.NewTagMap(map[string]interface{}{"abci.account.name": "John"}))
|
||||
require.NoError(t, err)
|
||||
assertReceive(t, "Tombstone", ch)
|
||||
}
|
||||
|
Reference in New Issue
Block a user