Skip to content

Commit

Permalink
avoid overflow
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Oct 20, 2022
1 parent 1251c51 commit 4328942
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/gocase/util/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (s *KvrocksServer) Host() string {
return s.addr.AddrPort().Addr().String()
}

func (s *KvrocksServer) Port() uint16 {
return s.addr.AddrPort().Port()
func (s *KvrocksServer) Port() uint64 {
return uint64(s.addr.AddrPort().Port())
}

func (s *KvrocksServer) TLSAddr() string {
Expand Down

0 comments on commit 4328942

Please sign in to comment.