2d031f3ecce42f3e12a7dbd26cbcfb945531ccff,src/syft/grid/connections/webrtc.py,WebRTCConnection,producer,#WebRTCConnection#,298

Before Change


                // If self.producer_pool.get() returned a message
                // send it as a binary using the RTCDataChannel.
                // logger.critical(f"> Sending MSG {msg.message} ID: {msg.id}")
                self.channel.send(msg.to_bytes())  // type: ignore
        except Exception as e:
            log = f"Got an exception in WebRTCConnection producer. {e}"
            logger.error(log)

After Change


                // send it as a binary using the RTCDataChannel.
                // logger.critical(f"> Sending MSG {msg.message} ID: {msg.id}")
                data = msg.to_bytes()
                data_len = len(data)

                if DC_CHUNKING_ENABLED and data_len > DC_MAX_CHUNK_SIZE:
                    chunk_num = 0
                    done = False
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: OpenMined/PySyft
Commit Name: 2d031f3ecce42f3e12a7dbd26cbcfb945531ccff
Time: 2020-12-01
Author: 12518480+vvmnnnkv@users.noreply.github.com
File Name: src/syft/grid/connections/webrtc.py
Class Name: WebRTCConnection
Method Name: producer


Project Name: reinforceio/tensorforce
Commit Name: 50761ca62a4a23ff0200a9345cccf8d7b87fd5ec
Time: 2018-02-21
Author: svenmika1977@gmail.com
File Name: tensorforce/contrib/remote_environment.py
Class Name: MsgPackNumpyProtocol
Method Name: send


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: aec6216f3d6540baaa5b0bb9badca5a00f84b74d
Time: 2020-08-10
Author: yuyanting@google.com
File Name: perfkitbenchmarker/linux_packages/ycsb.py
Class Name: YCSBExecutor
Method Name: RunStaircaseLoads