Skip to content

Commit

Permalink
add missing return values for custom store
Browse files Browse the repository at this point in the history
  • Loading branch information
laduchesneau committed Mar 2, 2024
1 parent 9acc10a commit 7cf7fd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions example/transeiver_with_request_window/CustomStore.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (s CustomStore) Set(ctx context.Context, request gosmpp.Request) {
return
default:
s.store.Set(strconv.Itoa(int(request.PDU.GetSequenceNumber())), request)
return
}
}
}
Expand Down Expand Up @@ -62,6 +63,7 @@ func (s CustomStore) Delete(ctx context.Context, sequenceNumber int32) {
return
default:
s.store.Remove(strconv.Itoa(int(sequenceNumber)))
return
}
}
}
Expand All @@ -73,6 +75,7 @@ func (s CustomStore) Clear(ctx context.Context) {
return
default:
s.store.Clear()
return
}
}
}
Expand Down

0 comments on commit 7cf7fd8

Please sign in to comment.