Skip to content

Commit

Permalink
move consts around a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Jan 8, 2018
1 parent 74f3281 commit fea550b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions handlers/facebook/facebook.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ const (
payloadKey = "payload"
)

// Facebook API says 640 is max for the body
const maxLength = 640

func init() {
courier.RegisterHandler(NewHandler())
}
Expand All @@ -39,10 +42,6 @@ type handler struct {
handlers.BaseHandler
}

const (
maxLength = 640 // Facebook API says 640 is max for the body
)

// NewHandler returns a new FacebookHandler ready to be registered
func NewHandler() courier.ChannelHandler {
return &handler{handlers.NewBaseHandler(courier.ChannelType("FB"), "Facebook")}
Expand Down

0 comments on commit fea550b

Please sign in to comment.