small memory fixes

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2022-03-27 01:17:47 +03:00
parent a07ad2387e
commit 51517885ff
5 changed files with 8 additions and 40 deletions

View File

@@ -20,11 +20,11 @@ var (
// rtr implements router interface
type rtr struct {
sync.RWMutex
running bool
table *table
opts router.Options
exit chan bool
initChan chan bool
opts router.Options
running bool
}
// NewRouter creates new router and returns it