Add comment to Push API

This commit is contained in:
Shrenuj Bansal 2022-11-15 17:02:08 -05:00
parent c0925ffb92
commit 22f3fbb9a3

View File

@ -668,6 +668,8 @@ func (mp *MessagePool) verifyMsgBeforeAdd(ctx context.Context, m *types.SignedMe
return publish, nil
}
// Push checks the signed message for any violations, adds the message to the message pool and
// publishes the message if the publish flag is set
func (mp *MessagePool) Push(ctx context.Context, m *types.SignedMessage, publish bool) (cid.Cid, error) {
done := metrics.Timer(ctx, metrics.MpoolPushDuration)
defer done()