mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 00:55:55 +00:00
Fix mistake in interface name
This commit is contained in:
parent
ecbbd31b4e
commit
952db994c7
2 changed files with 4 additions and 4 deletions
|
|
@ -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{}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue