Add firebase subscriber to topics from cache upon initialization; stricter rate limits
This commit is contained in:
parent
eef85c0955
commit
5948f39a53
2 changed files with 8 additions and 3 deletions
|
@ -47,7 +47,7 @@ func (e errHTTP) Error() string {
|
|||
}
|
||||
|
||||
const (
|
||||
messageLimit = 1024
|
||||
messageLimit = 512
|
||||
)
|
||||
|
||||
var (
|
||||
|
@ -86,6 +86,11 @@ func New(conf *config.Config) (*Server, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
for _, t := range topics {
|
||||
if firebaseSubscriber != nil {
|
||||
t.Subscribe(firebaseSubscriber)
|
||||
}
|
||||
}
|
||||
return &Server{
|
||||
config: conf,
|
||||
cache: cache,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue