diff options
author | Kegsay <kegan@matrix.org> | 2020-05-21 14:40:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-21 14:40:13 +0100 |
commit | 24d8df664c21fa8bd68d80b5585a496e264c410a (patch) | |
tree | 0a176d6dfd7f81522c5739b53313366b552b0ce1 /clientapi/producers | |
parent | 3fdb045116c9cd2f2a3badfebec0645d0381bacb (diff) |
Fix #897 and shuffle directory around (#1054)
* Fix #897 and shuffle directory around
* Update find-lint
* goimports
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'clientapi/producers')
-rw-r--r-- | clientapi/producers/syncapi.go | 4 | ||||
-rw-r--r-- | clientapi/producers/userupdate.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/clientapi/producers/syncapi.go b/clientapi/producers/syncapi.go index 0a446e2f..244a61dc 100644 --- a/clientapi/producers/syncapi.go +++ b/clientapi/producers/syncapi.go @@ -17,7 +17,7 @@ package producers import ( "encoding/json" - "github.com/matrix-org/dendrite/common" + "github.com/matrix-org/dendrite/internal" "github.com/Shopify/sarama" ) @@ -32,7 +32,7 @@ type SyncAPIProducer struct { func (p *SyncAPIProducer) SendData(userID string, roomID string, dataType string) error { var m sarama.ProducerMessage - data := common.AccountData{ + data := internal.AccountData{ RoomID: roomID, Type: dataType, } diff --git a/clientapi/producers/userupdate.go b/clientapi/producers/userupdate.go index 426b6d50..02e1700f 100644 --- a/clientapi/producers/userupdate.go +++ b/clientapi/producers/userupdate.go @@ -26,7 +26,7 @@ type UserUpdateProducer struct { Producer sarama.SyncProducer } -// TODO: Move this struct to `common` so the components that consume the topic +// TODO: Move this struct to `internal` so the components that consume the topic // can use it when parsing incoming messages type profileUpdate struct { Updated string `json:"updated"` // Which attribute is updated (can be either `avatar_url` or `displayname`) |