Skip to content

Commit

Permalink
rename function name
Browse files Browse the repository at this point in the history
  • Loading branch information
santinoncs committed Jun 5, 2023
1 parent 34f9cce commit 0116854
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/actor/armor_actor.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ func NewGCPArmorActor(config *ActorConfig) (*GCPArmorActor, error) {
}, nil
}

// GetIPsToBlock: this function will get the IPs candidate to Block by BlockIPs function
func (g *GCPArmorActor) getBlockIPs(sourceIPs []app.IPCount) ([]string, int32, error) {
// getPrepareToBlockIPs: this function will get the IPs candidate to Block by BlockIPs function
func (g *GCPArmorActor) getPrepareToBlockIPs(sourceIPs []app.IPCount) ([]string, int32, error) {

var sourceIPstring []string

Expand Down Expand Up @@ -84,7 +84,7 @@ func (g *GCPArmorActor) getBlockIPs(sourceIPs []app.IPCount) ([]string, int32, e
// BlockIPs: this function will block the IPs
func (g *GCPArmorActor) BlockIPs(sourceIPs []app.IPCount) error {

candidateIPsToBlock, lastprio, err := g.getBlockIPs(sourceIPs)
candidateIPsToBlock, lastprio, err := g.getPrepareToBlockIPs(sourceIPs)
if err != nil {
return err
}
Expand Down
Binary file modified ip-blocker
Binary file not shown.

0 comments on commit 0116854

Please sign in to comment.