mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
remove unnecessary config
This commit is contained in:
@@ -20,16 +20,14 @@ var Api *Server
|
||||
type Server struct {
|
||||
Runner *runner.Runner
|
||||
Router *gin.Engine
|
||||
Config *models.Config
|
||||
Datastore models.Datastore
|
||||
AppListeners []ifaces.AppListener
|
||||
SpecialHandlers []ifaces.SpecialHandler
|
||||
}
|
||||
|
||||
func New(c *models.Config, ds models.Datastore, r *runner.Runner) *Server {
|
||||
func New(ds models.Datastore, r *runner.Runner) *Server {
|
||||
Api = &Server{
|
||||
Router: gin.Default(),
|
||||
Config: c,
|
||||
Datastore: ds,
|
||||
Runner: r,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user