Skip to content

Conversation

@DanG100
Copy link
Contributor

@DanG100 DanG100 commented Feb 25, 2025

No description provided.

@DanG100 DanG100 requested a review from a team as a code owner February 25, 2025 19:54
@github-actions
Copy link

github-actions bot commented Feb 25, 2025

Pull Request Test Coverage Report for Build 13530669446

Details

  • 144 of 161 (89.44%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 2.8%

Changes Missing Coverage Covered Lines Changed/Added Lines %
fault/fault.go 144 161 89.44%
Files with Coverage Reduction New Missed Lines %
bgp/gobgp.go 2 40.63%
Totals Coverage Status
Change from base Build 13510497407: 0.02%
Covered Lines: 20264
Relevant Lines: 723720

💛 - Coveralls

@DanG100 DanG100 merged commit df77af7 into main Feb 25, 2025
11 checks passed
@DanG100 DanG100 deleted the fault branch February 25, 2025 23:16
tengyiG pushed a commit to tengyiG/lemming that referenced this pull request Feb 26, 2025
Copy link

@bormanp bormanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are planning to remove the regex matching, right?

// See the License for the specific language governing permissions and
// limitations under the License.

package fault
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing package comment.

Actually, it appears many things are missing godoc comments.

var recv *faultMessage
select { // Receive the potential modified req from the fault RPC.
case recv = <-recvCh:
case <-time.After(time.Second):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a constant or variable defined up top.

}

i.receiversMu.Lock()
delete(i.receivers, msgID)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be done even if we did not receive a message?

}

func (i *Interceptor) sendRecvFault(ch chan *faultMessage, rpcID string, msg any, oErr error) (any, error) {
msgID := uuid.New().String()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no reason to create this prior to line 72.

}

func (i *Interceptor) Unary(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error) {
rpcID := uuid.New().String()
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, not needed to soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants