fix bugs
diff --git a/api.go b/api.go
index 6afdbe3..c0a6ccf 100644
--- a/api.go
+++ b/api.go
@@ -93,9 +93,10 @@
ApiDeploymentsResponse []ApiDeploymentDetails `json:"contents"`
}
+//TODO add support for block and subscriber
type apiManagerInterface interface {
InitAPI()
- addChangedDeployment(string)
+ //addChangedDeployment(string)
//distributeEvents()
}
diff --git a/listener.go b/listener.go
index 3c08116..a062ef6 100644
--- a/listener.go
+++ b/listener.go
@@ -74,6 +74,7 @@
h.startupOnExistingDatabase()
if !apiInitialized {
h.apiMan.InitAPI()
+ apiInitialized = true
}
log.Debug("Snapshot processed")
}
@@ -123,9 +124,11 @@
}
}
- for _, d := range deletedDeployments {
- h.apiMan.addChangedDeployment(d.ID)
- }
+ /*
+ for _, d := range deletedDeployments {
+ h.apiMan.addChangedDeployment(d.ID)
+ }
+ */
for _, dep := range insertedDeployments {
go h.bundleMan.queueDownloadRequest(&dep)