Increase RequestMaxRetry and decrease RequestRetrySleep (also remove CreateChanel struct from 77cfe750
)
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
scn "blackforestbytes.com/simplecloudnotifier"
|
||||
"blackforestbytes.com/simplecloudnotifier/api/apierr"
|
||||
"blackforestbytes.com/simplecloudnotifier/api/ginresp"
|
||||
"blackforestbytes.com/simplecloudnotifier/db/impl/primary"
|
||||
"blackforestbytes.com/simplecloudnotifier/db/simplectx"
|
||||
"blackforestbytes.com/simplecloudnotifier/google"
|
||||
"blackforestbytes.com/simplecloudnotifier/models"
|
||||
@@ -332,13 +331,7 @@ func (app *Application) GetOrCreateChannel(ctx *AppContext, userid models.UserID
|
||||
|
||||
subscribeKey := app.GenerateRandomAuthKey()
|
||||
|
||||
channel := primary.CreateChanel{
|
||||
UserId: userid,
|
||||
IntName: intChanName,
|
||||
SubscribeKey: subscribeKey,
|
||||
DisplayName: displayChanName,
|
||||
}
|
||||
newChan, err := app.Database.Primary.CreateChannel(ctx, channel)
|
||||
newChan, err := app.Database.Primary.CreateChannel(ctx, userid, displayChanName, intChanName, subscribeKey, nil)
|
||||
if err != nil {
|
||||
return models.Channel{}, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user