Skip to content

Commit

Permalink
gh-61 golint fixups -p5
Browse files Browse the repository at this point in the history
  • Loading branch information
PacketCrunch committed Sep 14, 2022
1 parent e51d9ba commit 1d1cb5b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
23 changes: 10 additions & 13 deletions loxinet/loxinet.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,32 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package loxinet

import (
"fmt"
"os"
"sync"
"time"

apiserver "github.com/loxilb-io/loxilb/api"
nlp "github.com/loxilb-io/loxilb/api/loxinlp"
opts "github.com/loxilb-io/loxilb/options"
tk "github.com/loxilb-io/loxilib"
)

// string constant representing root security zone
const (
RootZone = "root"
)

// constants
const (
LoxinetTiVal = 10
)

// IterIntf - interface implementation to iterate various loxinet
// subsystems entitities
type IterIntf interface {
NodeWalker(b string)
}
Expand All @@ -51,19 +55,12 @@ type loxiNetH struct {
bgp *GoBgpH
}

// NodeWalker - an implementation of node walker interface
func (mh *loxiNetH) NodeWalker(b string) {
tk.LogIt(tk.LogDebug, "%s\n", b)
}

func (mh *loxiNetH) NodeDat2Str(d tk.TrieData) string {
return ""
}

func (mh *loxiNetH) TrieNodeWalker(b string) {
tk.LogIt(tk.LogDebug, "%s", b)
}

// This ticker routine runs every LOXINET_TIVAL seconds
// loxiNetTicker - this ticker routine runs every LOXINET_TIVAL seconds
func loxiNetTicker() {
for {
select {
Expand Down Expand Up @@ -123,13 +120,13 @@ func loxiNetInit() {
}
}

// This routine will not return
// loxiNetRun - This routine will not return
func loxiNetRun() {
mh.wg.Wait()
}

// Main routine of loxinet
func LoxiNetMain() {
// LoxiNetMain - main routine of loxinet
func Main() {
loxiNetInit()
loxiNetRun()
}
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ func main() {
}
}

ln.LoxiNetMain()
ln.Main()
}

0 comments on commit 1d1cb5b

Please sign in to comment.