Skip to content

Commit

Permalink
syntactic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jul 29, 2019
1 parent 8fdc050 commit ae99b9a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions network/router/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ import (
"github.com/google/uuid"
)

var (
// ErrRouteNotFound is returned when no route was found in the routing table
ErrRouteNotFound = errors.New("route not found")
// ErrDuplicateRoute is returned when the route already exists
ErrDuplicateRoute = errors.New("duplicate route")
)

// table is an in memory routing table
type table struct {
sync.RWMutex
Expand Down Expand Up @@ -191,3 +184,10 @@ func (t *table) sendEvent(e *Event) {
}
}
}

var (
// ErrRouteNotFound is returned when no route was found in the routing table
ErrRouteNotFound = errors.New("route not found")
// ErrDuplicateRoute is returned when the route already exists
ErrDuplicateRoute = errors.New("duplicate route")
)

0 comments on commit ae99b9a

Please sign in to comment.