Skip to content

Commit

Permalink
gh-61 golint fixups -p6
Browse files Browse the repository at this point in the history
  • Loading branch information
PacketCrunch committed Sep 15, 2022
1 parent 2ec0e5c commit 7b88ae7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion loxinet/gobgpclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ func (gbh *GoBgpH) DelBGPRule(IP string) {
gbh.mtx.Unlock()
}

// AddCurrentBgpRoutesToIpRoute - add bgp routes to OS fib
// AddCurrentBgpRoutesToIPRoute - add bgp routes to OS
func (gbh *GoBgpH) AddCurrentBgpRoutesToIPRoute() error {
ipv4UC := &api.Family{
Afi: api.Family_AFI_IP,
Expand Down
2 changes: 1 addition & 1 deletion loxinet/loxinet.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func loxiNetRun() {
mh.wg.Wait()
}

// LoxiNetMain - main routine of loxinet
// Main - main routine of loxinet
func Main() {
loxiNetInit()
loxiNetRun()
Expand Down
6 changes: 2 additions & 4 deletions loxinet/loxinettest.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package loxinet

import (
"fmt"
"net"
"testing"

cmn "github.com/loxilb-io/loxilb/common"
opts "github.com/loxilb-io/loxilb/options"
)

type Tk struct {
}

// TestLoxinet - Go unit test entry point
func TestLoxinet(t *testing.T) {

opts.Opts.NoNlp = true
Expand Down

0 comments on commit 7b88ae7

Please sign in to comment.