Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/Pulsar.Client/Common/Tools.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ open System.Collections.Generic
open Microsoft.Extensions.Logging
open System.Threading.Channels


let MemoryStreamManager = RecyclableMemoryStreamManager()
// MemoryStreamManager is mutable so that external programs may (unofficially) set their own RecyclableMemoryStreamManager via reflection (https://github.com/fsprojects/pulsar-client-dotnet/issues/320)
// This is not part of the public API and may be changed anytime!
let mutable MemoryStreamManager = RecyclableMemoryStreamManager()
let MagicNumber = int16 0x0e01
let RandomGenerator = Random()
let EmptyProps: IReadOnlyDictionary<string, string> = readOnlyDict []
Expand Down Expand Up @@ -170,4 +171,4 @@ let wrapException (f: unit -> 'a) =
try
Ok <| f()
with ex ->
Error ex
Error ex
Loading