You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Which issue(s) this PR fixes**:
Fixes#4162
**What this PR does / why we need it**:
Adds new compression method support to handle messages
**Docs Changes**:
TODO
**Release Note**:
N/A
---------
Signed-off-by: Athish Pranav D <[email protected]>
Co-authored-by: Daijiro Fukuda <[email protected]>
raiseArgumentError,'`compressed: gzip` can be used for Compressable module'ifkwargs[:compressed] == :gzip
178
+
raiseArgumentError,"`compressed: #{kwargs[:compressed]}` can be used for Compressable module"ifkwargs[:compressed] == :gzip || kwargs[:compressed] == :zstd
176
179
raiseNotImplementedError,"Implement this method in child class"
177
180
end
178
181
179
182
defopen(**kwargs, &block)
180
-
raiseArgumentError,'`compressed: gzip` can be used for Compressable module'ifkwargs[:compressed] == :gzip
183
+
raiseArgumentError,"`compressed: #{kwargs[:compressed]}` can be used for Compressable module"ifkwargs[:compressed] == :gzip || kwargs[:compressed] == :zstd
181
184
raiseNotImplementedError,"Implement this method in child class"
182
185
end
183
186
184
187
defwrite_to(io, **kwargs)
185
-
raiseArgumentError,'`compressed: gzip` can be used for Compressable module'ifkwargs[:compressed] == :gzip
188
+
raiseArgumentError,"`compressed: #{kwargs[:compressed]}` can be used for Compressable module"ifkwargs[:compressed] == :gzip || kwargs[:compressed] == :zstd
0 commit comments