Skip to content

Commit

Permalink
bugfix: fixing compiling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
santinoncs committed Sep 21, 2021
1 parent 940a569 commit 0557b59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/actor/armor_actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,13 +236,13 @@ func getBlockedIPsFromActorThatCanBeUnblocked(g *GCPArmorActor) []string {

}

func (g *GCPArmorActor) UnBlockIPs(ttlRules int) error {
func (g *GCPArmorActor) UnBlockIPs() error {

client := g.client
ctx := g.ctx
project := g.k8sProject

ips := getBlockedIPsFromActorThatCanBeUnblocked(g, ttlRules)
ips := getBlockedIPsFromActorThatCanBeUnblocked(g)

prios := getRuleFromIP(g, ips)

Expand Down
4 changes: 2 additions & 2 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Source interface {

type Actor interface {
BlockIPs([]IPCount) error
UnBlockIPs(int) error
UnBlockIPs() error
}

type IPCount struct {
Expand Down Expand Up @@ -47,7 +47,7 @@ func getIPsToChannel(listen chan []IPCount, source Source, interval int) {
}
}

func getBlockedIPsToChannel(exit chan bool, actor Actor, ttlRules int) {
func getBlockedIPsToChannel(exit chan bool, actor Actor) {
for {
time.Sleep(time.Second * 60 * 10)

Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (
"flag"
_ "io/ioutil"
"os"
"strconv"

"k8s.io/klog"

"k8s.io/klog"

Expand Down

0 comments on commit 0557b59

Please sign in to comment.