MCPcopy
hub / github.com/tinode/chat / TopicUpdateSubCnt

Method TopicUpdateSubCnt

server/db/adapter.go:125–125  ·  view source on GitHub ↗

TopicUpdateSubCnt refreshes denormalized topic subscriber count.

(topic string)

Source from the content-addressed store, hash-verified

123 TopicUpdateOnMessage(topic string, msg *t.Message) error
124 // TopicUpdateSubCnt refreshes denormalized topic subscriber count.
125 TopicUpdateSubCnt(topic string) error
126 // TopicUpdate updates topic record.
127 TopicUpdate(topic string, update map[string]any) error
128 // TopicOwnerChange updates topic's owner

Callers 3

UpdateSubCntMethod · 0.65
TestTopicUpdateSubCntFunction · 0.65
TestTopicUpdateSubCntFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 2

TestTopicUpdateSubCntFunction · 0.52
TestTopicUpdateSubCntFunction · 0.52