From 9c44621ee1ca9abfca79c593e80193afd9204c83 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Sat, 8 Jun 2024 19:26:14 -0700 Subject: Replace custom slice concat func with slices.Concat --- hotline/transaction.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hotline/transaction.go') diff --git a/hotline/transaction.go b/hotline/transaction.go index b01fdfb..d9bbc22 100644 --- a/hotline/transaction.go +++ b/hotline/transaction.go @@ -5,8 +5,8 @@ import ( "encoding/binary" "errors" "fmt" - "github.com/jhalter/mobius/concat" "math/rand" + "slices" ) const ( @@ -203,7 +203,7 @@ func (t *Transaction) MarshalBinary() (data []byte, err error) { fieldPayload = append(fieldPayload, field.Payload()...) } - return concat.Slices( + return slices.Concat( []byte{t.Flags, t.IsReply}, t.Type, t.ID, -- cgit