Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Martinez committed Dec 20, 2024
1 parent 69b0b1e commit 88fdb53
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions server/data_model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,12 +391,12 @@ impl ComputeGraph {

let mut graph_version: Option<ComputeGraphVersion> = None;

if self.code.sha256_hash != update.code.sha256_hash
|| self.runtime_information != update.runtime_information
|| self.edges != update.edges
|| self.start_fn != update.start_fn
|| self.nodes.len() != update.nodes.len()
|| self.nodes.iter().any(|(k, v)| {
if self.code.sha256_hash != update.code.sha256_hash ||
self.runtime_information != update.runtime_information ||
self.edges != update.edges ||
self.start_fn != update.start_fn ||
self.nodes.len() != update.nodes.len() ||
self.nodes.iter().any(|(k, v)| {
update
.nodes
.get(k)
Expand Down Expand Up @@ -1046,9 +1046,17 @@ mod tests {
use std::collections::HashMap;

use crate::{
test_objects::tests::test_compute_fn, ComputeFn, ComputeGraph, ComputeGraphCode,
ComputeGraphVersion, DynamicEdgeRouter, ExecutorMetadata, GraphVersion, ImageInformation,
Node, RuntimeInformation,
test_objects::tests::test_compute_fn,
ComputeFn,
ComputeGraph,
ComputeGraphCode,
ComputeGraphVersion,
DynamicEdgeRouter,
ExecutorMetadata,
GraphVersion,
ImageInformation,
Node,
RuntimeInformation,
};

#[test]
Expand Down

0 comments on commit 88fdb53

Please sign in to comment.