Skip to content

Commit

Permalink
Change calls of Addr to direct access to the field
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkren committed Jun 9, 2019
1 parent b31e1f2 commit 2d5b26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/dmsg/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (s *Server) Serve() error {
return fmt.Errorf("updating server's discovery entry failed with: %s", err)
}

s.log.Infof("serving: pk(%s) addr(%s)", s.pk, s.Addr())
s.log.Infof("serving: pk(%s) addr(%s)", s.pk, s.addr)

for {
rawConn, err := s.lis.Accept()
Expand All @@ -324,7 +324,7 @@ func (s *Server) Serve() error {
func (s *Server) updateDiscEntry(ctx context.Context) error {
entry, err := s.dc.Entry(ctx, s.pk)
if err != nil {
entry = client.NewServerEntry(s.pk, 0, s.Addr(), 10)
entry = client.NewServerEntry(s.pk, 0, s.addr, 10)
if err := entry.Sign(s.sk); err != nil {
return err
}
Expand Down

0 comments on commit 2d5b26a

Please sign in to comment.