Skip to content

Commit 2b5c60b

Browse files
redundant types
1 parent 6c8301c commit 2b5c60b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

server/listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Handler struct {
2525
maxEOFWait time.Duration
2626
}
2727

28-
func NewListener(port int, maxConn int, maxEOF time.Duration, engine query.EngineInterface) *Listener {
28+
func NewListener(port, maxConn int, maxEOF time.Duration, engine query.EngineInterface) *Listener {
2929
return &Listener{
3030
Port: port,
3131
Handler: &Handler{

world/world.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func NewWorld() *World {
3333
}
3434
}
3535

36-
func (m *World) Delete(ns string, locId string) {
36+
func (m *World) Delete(ns, locId string) {
3737
namespace := m.getNamespace(ns)
3838
if namespace == nil {
3939
panic(ErrUnexpectedNilNamespace)
@@ -43,7 +43,7 @@ func (m *World) Delete(ns string, locId string) {
4343
}
4444

4545
// Save a location to the world. If the location already exists, it will be updated.
46-
func (m *World) Save(ns string, locId string, lat float64, lon float64) error {
46+
func (m *World) Save(ns, locId string, lat, lon float64) error {
4747
namespace := m.getNamespace(ns)
4848

4949
if namespace == nil {
@@ -116,7 +116,7 @@ func (m *World) Merge(w *World) {
116116
}
117117
}
118118

119-
func (m *World) GetLocation(ns string, id string) (Location, bool) {
119+
func (m *World) GetLocation(ns, id string) (Location, bool) {
120120
namespace := m.getNamespace(ns)
121121

122122
if namespace == nil {

0 commit comments

Comments
 (0)