Fix mistake in interface name

This commit is contained in:
Cody Soyland 2018-06-13 09:21:15 -05:00
parent ecbbd31b4e
commit 952db994c7
2 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ func (resp *QueryResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(output)
}
type Handlerer interface {
type Handler interface {
http.Handler
GetAPI() *API
}
@ -73,6 +73,6 @@ func (n *NopHandler) GetAPI() *API {
return nil
}
func NewNopHandler() Handlerer {
func NewNopHandler() Handler {
return &NopHandler{}
}

View file

@ -59,7 +59,7 @@ type Server struct {
executor *Executor
// External
handler Handlerer
handler Handler
Broadcaster Broadcaster
BroadcastReceiver BroadcastReceiver
Gossiper Gossiper
@ -127,7 +127,7 @@ func OptServerLongQueryTime(dur time.Duration) ServerOption {
}
}
func OptServerHandler(h Handlerer) ServerOption {
func OptServerHandler(h Handler) ServerOption {
return func(s *Server) error {
s.handler = h
return nil