1
0
mirror of synced 2024-11-22 12:56:06 +03:00

Fix stutter

This commit is contained in:
Harrison 2016-04-14 10:25:48 +10:00
parent b206661b37
commit bc2b82cb33
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ func main() {
conf.Parse() conf.Parse()
m := messenger.New(messenger.MessengerOptions{ m := messenger.New(messenger.Options{
Verify: *verify, Verify: *verify,
VerifyToken: *verifyToken, VerifyToken: *verifyToken,
Token: *pageToken, Token: *pageToken,

View File

@ -12,8 +12,8 @@ const (
WebhookURL = "/webhook" WebhookURL = "/webhook"
) )
// MessengerOptions are the settings used when creating a Messenger client. // Options are the settings used when creating a Messenger client.
type MessengerOptions struct { type Options struct {
// Verify sets whether or not to be in the "verify" mode. Used for // Verify sets whether or not to be in the "verify" mode. Used for
// verifying webhooks on the Facebook Developer Portal. // verifying webhooks on the Facebook Developer Portal.
Verify bool Verify bool
@ -38,8 +38,8 @@ type Messenger struct {
token string token string
} }
// New creates a new Messenger. You pass in MessengerOptions in order to affect settings. // New creates a new Messenger. You pass in Options in order to affect settings.
func New(mo MessengerOptions) *Messenger { func New(mo Options) *Messenger {
m := &Messenger{ m := &Messenger{
mux: http.NewServeMux(), mux: http.NewServeMux(),
token: mo.Token, token: mo.Token,